Release script puts mbr + partition table on cd
This commit is contained in:
parent
075c219309
commit
71501f1e0a
1 changed files with 12 additions and 4 deletions
|
@ -61,7 +61,9 @@ RAM=/dev/ram
|
||||||
BS=4096
|
BS=4096
|
||||||
USRMB=300
|
USRMB=300
|
||||||
USRBLOCKS="`expr $USRMB \* 1024 \* 1024 / $BS`"
|
USRBLOCKS="`expr $USRMB \* 1024 \* 1024 / $BS`"
|
||||||
|
USRSECTS="`expr $USRMB \* 1024 \* 2`"
|
||||||
ROOTMB=2
|
ROOTMB=2
|
||||||
|
ROOTSECTS="`expr $ROOTMB \* 1024 \* 2`"
|
||||||
ROOTBLOCKS="`expr $ROOTMB \* 1024 \* 1024 / $BS`"
|
ROOTBLOCKS="`expr $ROOTMB \* 1024 \* 1024 / $BS`"
|
||||||
|
|
||||||
HDEMU=0
|
HDEMU=0
|
||||||
|
@ -226,9 +228,15 @@ writeisofs -l MINIX -b $bootimage $h_opt $CDFILES $ISO || exit 1
|
||||||
if [ "$HDEMU" -eq 0 ]
|
if [ "$HDEMU" -eq 0 ]
|
||||||
then
|
then
|
||||||
echo "Appending Minix root and usr filesystem"
|
echo "Appending Minix root and usr filesystem"
|
||||||
( cat $ISO $ROOTIMAGE ; dd if=$TMPDISK bs=$BS count=$USRBLOCKS ) |
|
( cat $ISO $ROOTIMAGE ; dd if=$TMPDISK bs=$BS count=$USRBLOCKS ) >m
|
||||||
gzip -9 >$ISOGZ || exit 1
|
isobytes=`stat -size $ISO`
|
||||||
else
|
isosects=`expr $isobytes / 512 - 1`
|
||||||
gzip -9 $ISO
|
mv m $ISO
|
||||||
|
# Make CD partition table
|
||||||
|
installboot -m $ISO /usr/mdec/masterboot
|
||||||
|
partition -m $ISO 81:$isosects 81:$ROOTSECTS 81:$USRSECTS
|
||||||
fi
|
fi
|
||||||
|
echo " * gzipping $ISO"
|
||||||
|
gzip -9 $ISO
|
||||||
ls -al $ISOGZ
|
ls -al $ISOGZ
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue