diff --git a/gentoo-install.sh b/gentoo-install.sh index c137e21..2b2c498 100755 --- a/gentoo-install.sh +++ b/gentoo-install.sh @@ -264,6 +264,11 @@ function stage_step() { SwapOffset=$(btrfs inspect-internal map-swapfile -r /mnt/gentoo/swap/hibernate.swp) ${cmd} sed -i "s/^#GRUB_CMDLINE_LINUX_DEFAULT=.*/GRUB_CMDLINE_LINUX_DEFAULT=\"resume=${SwapUUID} resume_offset=${SwapOffset}\"/g" /mnt/gentoo/etc/default/grub fi + + arch-chroot /mnt/gentoo emerge --sync + arch-chroot /mnt/gentoo grub-install --efi-directory=/efi + arch-chroot /mnt/gentoo dracut --host-only + arch-chroot /mnt/gentoo grub-mkconfig -o /boot/grub/grub.cfg } function show_options() {