-# create a manifold-boot image with a partition table, if possible {{{
- if mksh -c true 2>/dev/null && \
- test -e /usr/share/grml-live/scripts/bootgrub.mksh; then
- echo "Creating a manifold-boot ISO image"
- echo 1 63 | \
- mksh /usr/share/grml-live/scripts/bootgrub.mksh -A -M 1 -p 0x83 -g $cyls:16:32 | \
- cat - boot/grub/core.img | \
- dd conv=notrunc of="$ISOFILE" conv=notrunc 2>/dev/null
- else
- echo "Cannot find mksh or bootgrub.mksh, not generating manifold-boot ISO image"
- fi
-# }}}