From 5cd4866b69c8b93c5c65f3c25a844941ca6a2110 Mon Sep 17 00:00:00 2001 From: Eric Renfro Date: Mon, 5 Aug 2024 13:21:27 -0400 Subject: [PATCH] Fixing stage install commands for systemd and fixed missing dracut command on initrd --- gentoo-install.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gentoo-install.sh b/gentoo-install.sh index ec46536..b6fbe8a 100755 --- a/gentoo-install.sh +++ b/gentoo-install.sh @@ -308,12 +308,14 @@ function stage_step() { ${cmd} rm -f /mnt/gentoo/etc/machine-id fi ${cmd} arch-chroot /mnt/gentoo systemd-machine-id-setup + ${cmd} arch-chroot /mnt/gentoo systemd-firstboot --prompt + ${cmd} arch-chroot /mnt/gentoo systemctl preset-all --preset-mode=enable-only ${cmd} arch-chroot /mnt/gentoo emerge --sync ${cmd} arch-chroot /mnt/gentoo grub-install --efi-directory=/efi #arch-chroot /mnt/gentoo dracut --host-only while read -r rd; do rd="$(basename "$rd")" - ${cmd} arch-chroot --force "/boot/initramfs-${rd}.img" --kver "$rd" + ${cmd} arch-chroot /mnt/gentoo dracut --force "/boot/initramfs-${rd}.img" --kver "$rd" done < <(find /mnt/gentoo/lib/modules -mindepth 1 -maxdepth 1 -type d) ${cmd} arch-chroot /mnt/gentoo grub-mkconfig -o /boot/grub/grub.cfg }