Hi,
This patch alters the behaviuor of the --device option of mkbootdisk.
If this option is set it will fdformat the floppy using the given device
and run syslinux with the -s option.
I tested this with /dev/fd0u1680 and it boots on 3 kinds of dell optiplex
machines and my Dell inspiron notebook.
YMMV using larger devices like /dev/fd0u1722 and the like. And make sure
you use decent floppy's because they are not made for this. At least it
proves the truth in my .sig
--- /sbin/mkbootdisk Thu Feb 8 23:48:15 2001
+++ mkbootdisk Wed May 9 11:34:16 2001
@@ -8,6 +8,7 @@
unset kernel
device=/dev/fd0
unset verbose
+unset fdformat
unset witheth
unset mkinitrdargs
unset compact
@@ -32,6 +33,7 @@
--device)
shift
device=$1
+ fdformat=true
;;
--mkinitrdargs)
shift
@@ -141,12 +143,14 @@
}
[ -n "$verbose" ] && echo -n "Formatting $device... "
+[ -n "$fdformat" ] && fdformat $device
mkdosfs -I $device > /dev/null || {
echo "Failed to format $device" >&2
exit 1
}
-syslinux $device
+[ -n "$fdformat" ] && syslinux -s $device
+[ -z "$fdformat" ] && syslinux $device
[ -n "$verbose" ] && echo "done."
rm -rf $MOUNTDIR
Good luck with using it. I know I will.
Cheers
--
Seth
Every program has two purposes one for which
it was written and another for which it wasn't
I use the last kind.
|