From 61cea08d0035f08a1092b2ecb6a2cfe9ff16e1d4 Mon Sep 17 00:00:00 2001 From: rlfnb Date: Tue, 8 Sep 2015 13:10:30 +0200 Subject: [PATCH] make the minix_x86.img bootable The image created via x86_hdimage.sh (minix_x86.img) is used for starting QEMU. However, its not far away from being bootable via "qemu-system-i386 -hda test_x86.img", too. This comit allows to boot the MBR but it still fails to boot the partition boot record, which needs to be inserted. --- releasetools/x86_hdimage.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/releasetools/x86_hdimage.sh b/releasetools/x86_hdimage.sh index c15e712b2..6bb7a5765 100755 --- a/releasetools/x86_hdimage.sh +++ b/releasetools/x86_hdimage.sh @@ -190,7 +190,9 @@ _HOME_SIZE=$((`${CROSS_TOOLS}/nbmkfs.mfs -d ${HOMESIZEARG} -I $((${HOME_START}*5 # minix partition utility # ${CROSS_TOOLS}/nbpartition -m ${IMG} 0 81:${ISO_SIZE} \ - 81:${_ROOT_SIZE} 81:${_USR_SIZE} 81:${_HOME_SIZE} + 81:${_ROOT_SIZE}* 81:${_USR_SIZE} 81:${_HOME_SIZE} + +dd if=${DESTDIR}/usr/mdec/mbr of=${IMG} conv=notrunc bs=446 count=1 mods="`( cd ${MODDIR}; echo mod* | tr ' ' ',' )`" if [ "x${ISOMODE}" = "x1" ]