customize_root_image.sh 592 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
#!/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

10
usermod -s /usr/bin/zsh root
11
12
cp -aT /etc/skel/ /root/

13
useradd -m -p "" -g users -G "adm,audio,floppy,log,network,rfkill,scanner,storage,optical,power,wheel" -s /usr/bin/zsh arch
14
15
16
17
18

chmod 750 /etc/sudoers.d
chmod 440 /etc/sudoers.d/g_wheel

sed -i "s/#Server/Server/g" /etc/pacman.d/mirrorlist
19
sed -i 's/#\(Storage=\)auto/\1volatile/' /etc/systemd/journald.conf
20

21
22
systemctl enable pacman-init.service choose-mirror.service
systemctl set-default multi-user.target