unbreak building CDs
This commit is contained in:
+9
-5
@@ -9,10 +9,10 @@ mdec=/usr/mdec # bootstraps
|
||||
|
||||
# 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
|
||||
|
||||
@@ -169,8 +169,12 @@ cdfdboot)
|
||||
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."
|
||||
@@ -203,7 +207,7 @@ main(){trap 10000 boot; menu; };
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user