aboutsummaryrefslogtreecommitdiff
path: root/kvmx-create
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-04-02 00:01:23 -0300
committerSilvio Rhatto <rhatto@riseup.net>2017-04-02 00:01:23 -0300
commitff124a153eb17985f1907d5b702421db2e37fa69 (patch)
treea55209a84aca932c746e3dab9622bf58b12550e9 /kvmx-create
parent19673c5c4c05dafa3e091824b16026a93ae318a3 (diff)
downloadkvmx-ff124a153eb17985f1907d5b702421db2e37fa69.tar.gz
kvmx-ff124a153eb17985f1907d5b702421db2e37fa69.tar.bz2
Add comments about GRUB not working on jessie
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