3 # Generate a legacy floppy emulation ISO boot image
5 # genliso foo.liso foo.lkrn bar.lkrn ...
7 # The .liso image filename is the first argument followed by
8 # a list of .lkrn images include in .liso image
12 echo Usage
: $0 foo.liso foo.lkrn ...
18 Mtools\ version\
3.9.9*|Mtools\ version\
3.9.1[0-9]*|Mtools\ version\
4.
*)
21 echo Mtools version
3.9.9 or later is required
33 mformat
-f 1440 -C -i $img ::
37 # These default options can be changed in the genliso script
38 SAY gPXE ISO boot image generated by genliso
47 echo $f does not exist
, skipping
1>&2
50 # shorten name for 8.3 filesystem
63 mcopy
-m -i $img $f ::$g
66 mcopy
-i $img $cfg ::syslinux.cfg
73 mkisofs
-o $out -c boot.
cat -b boot.img
$dir