From 40fdc97431771e05108b02cd45734a6415ee0eb2 Mon Sep 17 00:00:00 2001 From: Eric Renfro Date: Sun, 4 Aug 2024 20:18:33 -0400 Subject: [PATCH] Added stage_step chroot installation steps --- gentoo-install.sh | 5 +++++ 1 file changed, 5 insertions(+) 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() {