Added some diagnostic
This commit is contained in:
parent
ca0d035146
commit
afcfd1871d
1 changed files with 12 additions and 2 deletions
14
tools/mkboot
14
tools/mkboot
|
@ -126,7 +126,12 @@ fdboot)
|
||||||
|
|
||||||
# Make a file system.
|
# Make a file system.
|
||||||
umount $dev 2>/dev/null
|
umount $dev 2>/dev/null
|
||||||
mkfs -B 1024 -i 512 $dev || exit
|
if mkfs -B 1024 -i 512 $dev
|
||||||
|
then :
|
||||||
|
else
|
||||||
|
echo "mkfs of $dev failed."
|
||||||
|
exit 1;
|
||||||
|
fi
|
||||||
|
|
||||||
# Install /dev, /boot/boot and /boot/image.
|
# Install /dev, /boot/boot and /boot/image.
|
||||||
mount $dev /mnt || exit
|
mount $dev /mnt || exit
|
||||||
|
@ -153,7 +158,12 @@ cdfdboot)
|
||||||
# cdfdboot: Make a boot floppy image to go on a CD for booting from.
|
# cdfdboot: Make a boot floppy image to go on a CD for booting from.
|
||||||
dev=/dev/ram
|
dev=/dev/ram
|
||||||
umount $dev 2>/dev/null
|
umount $dev 2>/dev/null
|
||||||
mkfs -B 1024 -b 1440 -i 512 $dev || exit 1
|
if mkfs -B 1024 -b 1440 -i 512 $dev || exit 1
|
||||||
|
then :
|
||||||
|
else
|
||||||
|
echo "mkfs of $dev failed."
|
||||||
|
exit 1;
|
||||||
|
fi
|
||||||
|
|
||||||
# Install /dev, /boot
|
# Install /dev, /boot
|
||||||
mount $dev /mnt || exit 1
|
mount $dev /mnt || exit 1
|
||||||
|
|
Loading…
Reference in a new issue