Skip to content
Snippets Groups Projects
Commit d581a91c authored by Jeffrey Tolar's avatar Jeffrey Tolar
Browse files

Add some newlines

parent 58c9f3ce
No related branches found
No related tags found
No related merge requests found
......@@ -104,30 +104,36 @@ locale-gen
echo LANG=en_US.UTF-8 > /etc/locale.conf
/usr/bin/mandb
# networking
ln -s /dev/null /etc/udev/rules.d/80-net-setup-link.rules
cp /etc/netctl/examples/ethernet-dhcp /etc/netctl/wired
systemctl enable netctl@wired.service netctl-sleep.service
# setup pacman keyring
pacman-key --init
pacman-key --populate archlinux
# install bootloader
syslinux-install_update -i -a -m
uuid=\$(blkid -o value -s UUID ${loopdev}p1)
sed -i '/APPEND/ s+root=[^ ]*+root=UUID='\$uuid'+' /boot/syslinux/syslinux.cfg
# fix a bug when running in QEMU - the 'block' hook has to be included in the initcpio
sed -i '/^HOOKS/ s/autodetect \\(.*\\) block/block autodetect \\1/' /etc/mkinitcpio.conf
mkinitcpio -p linux
# create default user, set passwords
useradd -G wheel -m $DEFAULT_USER
echo "$DEFAULT_USER:$DEFAULT_PASSWORD" | chpasswd
echo "root:$ROOT_PASSWORD" | chpasswd
echo "%wheel ALL=(ALL) ALL" > /etc/sudoers.d/wheel
# autologin on tty1
mkdir -p /etc/systemd/system/getty@tty1.service.d
cat > /etc/systemd/system/getty@tty1.service.d/override.conf <<"gettyEOF"
......@@ -136,6 +142,7 @@ ExecStart=
ExecStart=-/usr/bin/agetty --autologin $DEFAULT_USER --noclear %I 38400 linux
gettyEOF
# autostart X (xfce) on tty1
echo '[[ -z \$DISPLAY && \$XDG_VTNR -eq 1 ]] && exec startx' >> /home/$DEFAULT_USER/.bashrc
chown $DEFAULT_USER:$DEFAULT_USER /home/$DEFAULT_USER/.bashrc
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment