aboutsummaryrefslogtreecommitdiff
path: root/kvmx-create
diff options
context:
space:
mode:
Diffstat (limited to 'kvmx-create')
-rwxr-xr-xkvmx-create10
1 files changed, 9 insertions, 1 deletions
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