Update install-grub.sh

This commit is contained in:
proledatarian 2022-04-06 20:38:45 +00:00
parent 01abbcc078
commit cf11ad2459
1 changed files with 1 additions and 1 deletions

View File

@ -345,7 +345,7 @@ echo
# Install bootloader.
echo "Installing GRUB."
arch-chroot /mnt grub-install --target=i386-pc /dev/$dev &&
sed -i '7s/.*/GRUB_CMDLINE_LINUX="cryptdevice=/dev/$main:lvm root=/dev/mapper/main-root"/' /mnt/etc/default/grub &&
sed -i '7s|.*|GRUB_CMDLINE_LINUX="cryptdevice=/dev/$main:lvm root=/dev/mapper/main-root"|' /mnt/etc/default/grub &&
sed -i '10s/.*/GRUB_PRELOAD_MODULES="part_gpt part_msdos lvm"/' /mnt/etc/default/grub &&
arch-chroot /mnt grub-mkconfig -o /boot/grub/grub.cfg &&
echo "Done."