From ff124a153eb17985f1907d5b702421db2e37fa69 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sun, 2 Apr 2017 00:01:23 -0300 Subject: Add comments about GRUB not working on jessie --- kvmx-create | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'kvmx-create') diff --git a/kvmx-create b/kvmx-create index 05d7571..dacab4a 100755 --- a/kvmx-create +++ b/kvmx-create @@ -283,11 +283,19 @@ allow-hotplug ens3 iface ens3 inet dhcp EOF - # Grub + # GRUB kvmx_sudo_run mount none -t proc $WORK/proc kvmx_sudo_run mount none -t sysfs $WORK/sys kvmx_sudo_run mount -o bind /dev/ $WORK/dev $APT_INSTALL grub-pc -y + # GRUB install is not working for jessie and this was an attempt to fix it + # Consider fixing this or moving to extlinux. + # https://superuser.com/questions/130955/how-to-install-grub-into-an-img-file + # http://www.grulic.org.ar/~mdione/glob/posts/create-a-disk-image-with-a-booting-running-debian/ + # http://www.syslinux.org/wiki/index.php?title=EXTLINUX + # https://packages.debian.org/jessie/grub-firmware-qemu + #kvmx_sudo_run sed -i -e 's|^#GRUB_DISABLE_LINUX_UUID=true|GRUB_DISABLE_LINUX_UUID=true|' $WORK/etc/default/grub + #kvmx_sudo_run grub-install --boot-directory=$WORK/boot $image kvmx_sudo_run chroot $WORK/ update-grub kvmx_sudo_run chroot $WORK/ grub-install $device kvmx_sudo_run umount $WORK/proc -- cgit v1.2.3