blob: 08454244bb6e4a085f707637f69ebdfac53c0897 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
#!/bin/bash
set -e -u
sed -i 's/#\(en_US\.UTF-8\)/\1/' /etc/locale.gen
locale-gen
ln -sf /usr/share/zoneinfo/UTC /etc/localtime
#usermod -s /usr/bin/zsh root
#cp -aT /etc/skel/ /root/
chmod 700 /root
chmod 750 /etc/sudoers.d
chmod 440 /etc/sudoers.d/g_wheel
systemctl set-default multi-user.target
#LinHES
#add symlink
if [ -e /etc/udev/rules.d/80-net-name-slot.rules ]
then
rm -f /etc/udev/rules.d/80-net-name-slot.rules
fi
ln -s /dev/null /etc/udev/rules.d/80-net-name-slot.rules
#remove tmp mount as tmpfs
systemctl mask tmp.mount
systemctl mask dhcpcd.service
systemctl mask dhcpcd\@.service
|