grub config needs to be generated later!
This commit is contained in:
parent
4c8051b5a2
commit
41fd5a8812
1 changed files with 2 additions and 3 deletions
|
@ -73,9 +73,6 @@ cat ${keyfile} > ${chroot_dir}/root/.ssh/authorized_keys
|
||||||
# Fix possible permission issue from above
|
# Fix possible permission issue from above
|
||||||
chmod -R og-rwx ${chroot_dir}/root/
|
chmod -R og-rwx ${chroot_dir}/root/
|
||||||
|
|
||||||
# Ensure boot loader has a configuration
|
|
||||||
chroot ${chroot_dir} grub-mkconfig -o /boot/grub/grub.cfg
|
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
# networking
|
# networking
|
||||||
|
|
||||||
|
@ -111,6 +108,8 @@ for dir in dev sys proc; do
|
||||||
done
|
done
|
||||||
|
|
||||||
chroot ${chroot_dir} grub-install ${disk}
|
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
|
for dir in dev sys proc; do
|
||||||
umount ${chroot_dir}/${dir}
|
umount ${chroot_dir}/${dir}
|
||||||
|
|
Loading…
Reference in a new issue