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]*|
[mM
]tools\
*\
[4-9].
*)
21 echo Mtools version
3.9.9 or later is required
29 dir
=`mktemp -d bin/liso.dir.XXXXXX`
32 mformat
-f 1440 -C -i $img ::
36 # These default options can be changed in the genliso script
37 SAY gPXE ISO boot image generated by genliso
46 echo $f does not exist
, skipping
1>&2
49 # shorten name for 8.3 filesystem
62 mcopy
-m -i $img $f ::$g
65 mcopy
-i $img $cfg ::syslinux.cfg
72 mkisofs
-q -o $out -c boot.
cat -b boot.img
$dir