# Check arguments.
case "$#:$1" in
-1:bootable | 1:hdboot | [12]:fdboot | [12]:cdfdboot )
- action=$1 dev=$2
+1:bootable | 1:hdboot | [12]:fdboot | [123]:cdfdboot )
+ action=$1 dev=$2 size=$3
;;
-*) echo "Usage: $0 [bootable | hdboot | cdfdboot | fdboot [device]] | cdfdboot [device]" >&2
+*) echo "Usage: $0 [bootable | hdboot | fdboot [device]] | cdfdboot [device [size]]" >&2
exit 1
esac
ramdisk `expr 1440 \* 1024` 2>/dev/null
dev=/dev/ram
fi
+ if [ -z "$size" ]
+ then
+ size=1440
+ fi
umount $dev 2>/dev/null
- if mkfs -B 1024 -b 1440 -i 512 $dev || exit 1
+ if mkfs -B 1024 -b $size -i 512 $dev || exit 1
then :
else
echo "mkfs of $dev failed."
save' || exit
# copy image
- dd if=$dev of=cdfdimage bs=8192 count=180
+ dd if=$dev of=cdfdimage bs=1024 count=$size
esac
sync
exit 0
(cd ../boot && make)
dd if=$TMPDISK3 of=$ROOTIMAGE bs=$BS count=$ROOTBLOCKS
-sh mkboot cdfdboot $TMPDISK3
-cp $IMAGE $CDFILES/bootflop.img
+sh mkboot cdfdboot $TMPDISK3 $ROOTKB
+# image no longer fits on a floppy
+#cp $IMAGE $CDFILES/bootflop.img
cp release/cd/* $CDFILES || true
echo "This is Minix version $version_pretty prepared `date`." >$CDFILES/VERSION.TXT
This CD contains:\r
\r
- README.TXT This file\r
- - BOOTFLOP.IMG If you cannot boot from CD-ROMs, insert the CD-ROM\r
- anyway, then copy this floppy image raw to a floppy\r
- using RawWrite (ask Google) and boot from the floppy\r
\r
There are also many invisible files used for installing MINIX 3.\r
\r