3 # Generate a syslinux floppy that loads a gPXE image
5 # gensdsk foo.sdsk foo.lkrn
7 # the floppy image is the first argument
8 # followed by list of .lkrn images
13 echo Usage
: $0 foo.sdsk foo.lkrn ...
18 Mtools\ version\
3.9.9*|Mtools\ version\
3.9.1[0-9]*|
[mM
]tools\
*\
[4-9].
*)
21 echo Mtools version
3.9.9 or later is required
27 dir
=`mktemp -d bin/sdsk.dir.XXXXXX`
29 mformat
-f 1440 -C -i $img ::
33 # These default options can be changed in the gensdsk script
41 echo $f does not exist
, skipping
1>&2
44 # shorten name for 8.3 filesystem
57 mcopy
-m -i $img $f ::$g
59 mcopy
-i $img $cfg ::syslinux.cfg