Added stage_step chroot installation steps
This commit is contained in:
parent
119e9e525c
commit
40fdc97431
1 changed files with 5 additions and 0 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue