[syslinux] Advice/directions to users of Syslinux

Dean Graff graff97 at gmail.com
Thu Jan 23 05:50:58 PST 2014


I played with `mkdiskimage' some last night, here is what i came up with:

mkdiskimage -z -F binary.img 1000
i="$(losetup -f --show binary.img)"
j="$(kpartx -savu "${i}" | awk '{print "/dev/mapper/"$3 }')"
mount "${j}" /mnt
cp /usr/lib/syslinux/vesamenu.c32 /mnt
cat > /mnt/syslinux.cfg <<EOF
UI vesamenu.c32
DEFAULT linux
LABEL linux
EOF
umount /mnt
syslinux "${j}"
kpartx -d "${i}"
losetup -d "${i}"
kvm binary.img

and it is done, and tested.
This makes a binary hard disk image file, which is partitioned, mounted,
and populated.
Thanks syslinux devs. `mkdiskimage' shaves 3 commands off of this everyday
process. Bringing new comers one step closer to understanding how an entire
system works, and is built.
-dean


More information about the Syslinux mailing list