From 71501f1e0afc878141e298bc02b24c910cf0bdf6 Mon Sep 17 00:00:00 2001 From: Ben Gras Date: Wed, 7 Sep 2005 10:07:05 +0000 Subject: [PATCH] Release script puts mbr + partition table on cd --- tools/release.sh | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/tools/release.sh b/tools/release.sh index 5a9d373e9..b3be79fec 100755 --- a/tools/release.sh +++ b/tools/release.sh @@ -61,7 +61,9 @@ RAM=/dev/ram BS=4096 USRMB=300 USRBLOCKS="`expr $USRMB \* 1024 \* 1024 / $BS`" +USRSECTS="`expr $USRMB \* 1024 \* 2`" ROOTMB=2 +ROOTSECTS="`expr $ROOTMB \* 1024 \* 2`" ROOTBLOCKS="`expr $ROOTMB \* 1024 \* 1024 / $BS`" HDEMU=0 @@ -226,9 +228,15 @@ writeisofs -l MINIX -b $bootimage $h_opt $CDFILES $ISO || exit 1 if [ "$HDEMU" -eq 0 ] then echo "Appending Minix root and usr filesystem" - ( cat $ISO $ROOTIMAGE ; dd if=$TMPDISK bs=$BS count=$USRBLOCKS ) | - gzip -9 >$ISOGZ || exit 1 -else - gzip -9 $ISO + ( cat $ISO $ROOTIMAGE ; dd if=$TMPDISK bs=$BS count=$USRBLOCKS ) >m + isobytes=`stat -size $ISO` + isosects=`expr $isobytes / 512 - 1` + mv m $ISO + # Make CD partition table + installboot -m $ISO /usr/mdec/masterboot + partition -m $ISO 81:$isosects 81:$ROOTSECTS 81:$USRSECTS fi +echo " * gzipping $ISO" +gzip -9 $ISO ls -al $ISOGZ + -- 2.44.0