tnow make_qemu_img creates bootable images - libdevuansdk - common library for devuan's simple distro kits HTML git clone https://git.parazyd.org/libdevuansdk DIR Log DIR Files DIR Refs DIR Submodules DIR README DIR LICENSE --- DIR commit 7a9cf9688aa75ef20a58c492edff52794ace8be8 DIR parent 5787cc14c4ab207fd634919196799bff6e585909 HTML Author: KatolaZ <katolaz@yahoo.it> Date: Mon, 13 Jun 2016 01:21:02 +0100 now make_qemu_img creates bootable images Diffstat: M zlibs/customise | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) --- DIR diff --git a/zlibs/customise b/zlibs/customise t@@ -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} }