diff --git a/installer/install-arch b/installer/install-arch index 3d59cec..dcf724c 100755 --- a/installer/install-arch +++ b/installer/install-arch @@ -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 <