update install script

This commit is contained in:
Maximilian Keßler 2022-07-29 11:40:03 +02:00
parent 72f5bd1e0c
commit 30d2e0c568

View file

@ -146,6 +146,12 @@ genfstab -U /mnt >> /mnt/etc/fstab
echo "Setting hostname"
echo "${hostname}" > /mnt/etc/hostname
# I have no idea why this is mounted at this point, but for arch-chroot to work
# we have to unmount this
# For now, this is just black magic making this work
umount /mnt/dev
echo "Adding user ${user} in new system"
arch-chroot /mnt useradd --create-home --user-group --shell /usr/bin/zsh --groups wheel,uucp,video,audio,storage,games,input "$user"
@ -159,7 +165,7 @@ echo "Installing grub bootloader"
arch-chroot /mnt grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=GRUB
echo 'Configuring HOOKS in /etc/mkinitcpio.conf and regenerating initramfs'
sed -i 's/HOOKS=(base udev autodetect consolefont modconf block keyboard fsck)/HOOKS=(base udev autodetect keyboard keymap consolefont modconf block enrcypt lvm2 resume fsck)/' /mnt/etc/mkinitcpio.conf
sed -i 's/^HOOKS=(base .* fsck)$/HOOKS=(base udev autodetect keyboard keymap consolefont modconf block enrcypt lvm2 resume fsck)/' /mnt/etc/mkinitcpio.conf
arch-chroot /mnt mkinitcpio -P
@ -167,6 +173,7 @@ cat <<EOF
---------------------
Installed basic packages and setup in /mnt
Manual configuration is still needed for the following
- configure grub parameters, generate main grub.cfg
- configure grub parameters for cryptvolume and resume hook
- generate main grub.cfg with grub-mkconfig -o /boot/grub/grub.cfg
---------------------
EOF