commit 7a9cf9688aa75ef20a58c492edff52794ace8be8
parent 5787cc14c4ab207fd634919196799bff6e585909
Author: KatolaZ <katolaz@yahoo.it>
Date: Mon, 13 Jun 2016 01:21:02 +0100
now make_qemu_img creates bootable images
Diffstat:
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/zlibs/customise b/zlibs/customise
@@ -72,11 +72,14 @@ _install_bootloader(){
cat > ${devicemap} <<EOF
(hd0) /dev/loop0
-(hd0,1) /dev/loop1
EOF
sudo cp ${devicemap} ${root}/boot/grub/device.map
sudo chroot ${root} grub-mkconfig -o /boot/grub/grub.cfg
-
+ ## we now tamper with grub.cfg, to remove all references to
+ ## loopback devices...
+ ## FIXME!!! This is a hack...
+ sudo -- sed -r -i -e 's/.*loop.*//g' ${root}/boot/grub/grub.cfg
+
sudo grub-install --root-directory=${root} --no-floppy \
--modules="ext2 part_msdos" ${install_dev}
}