diff --git a/debian-devuan-install-on-disk.sh b/debian-devuan-install-on-disk.sh index 9474f97..a816120 100755 --- a/debian-devuan-install-on-disk.sh +++ b/debian-devuan-install-on-disk.sh @@ -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}