Fixing stage install commands for systemd and fixed missing dracut command on initrd
This commit is contained in:
parent
dbc8922d77
commit
5cd4866b69
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue