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.
This commit is contained in:
rlfnb 2015-09-08 13:10:30 +02:00
parent 1d9856e713
commit 61cea08d00

View File

@ -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" ]