Update install-grub.sh
This commit is contained in:
parent
01abbcc078
commit
cf11ad2459
|
@ -345,7 +345,7 @@ echo
|
||||||
# Install bootloader.
|
# Install bootloader.
|
||||||
echo "Installing GRUB."
|
echo "Installing GRUB."
|
||||||
arch-chroot /mnt grub-install --target=i386-pc /dev/$dev &&
|
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 &&
|
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 &&
|
arch-chroot /mnt grub-mkconfig -o /boot/grub/grub.cfg &&
|
||||||
echo "Done."
|
echo "Done."
|
||||||
|
|
Loading…
Reference in New Issue