grub config needs to be generated later!

This commit is contained in:
Nico Schottelius 2021-09-05 12:41:04 +02:00
parent 4c8051b5a2
commit 41fd5a8812
1 changed files with 2 additions and 3 deletions

View File

@ -73,9 +73,6 @@ cat ${keyfile} > ${chroot_dir}/root/.ssh/authorized_keys
# Fix possible permission issue from above
chmod -R og-rwx ${chroot_dir}/root/
# Ensure boot loader has a configuration
chroot ${chroot_dir} grub-mkconfig -o /boot/grub/grub.cfg
################################################################################
# networking
@ -111,6 +108,8 @@ for dir in dev sys proc; do
done
chroot ${chroot_dir} grub-install ${disk}
# Ensure boot loader has a configuration
chroot ${chroot_dir} grub-mkconfig -o /boot/grub/grub.cfg
for dir in dev sys proc; do
umount ${chroot_dir}/${dir}