]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[build] Use a partition table in generated USB disk images
authorMichael Brown <mcb30@ipxe.org>
Mon, 23 Mar 2026 16:08:09 +0000 (16:08 +0000)
committerMichael Brown <mcb30@ipxe.org>
Wed, 25 Mar 2026 12:33:45 +0000 (12:33 +0000)
commit2c84b686bcf6dfa77b82e27aa2df1f3ec30e902e
treedefb20dc1a3734be29fdc16517cb1392a7f5b13f
parent0d30ee7b49d17248edbfd181bd09579f178ef860
[build] Use a partition table in generated USB disk images

The USB disk image constructed by util/genfsimg is currently a raw FAT
filesystem, with no containing partition.  This makes it incompatible
with the use of CONSOLE_INT13, since there is no way to add a
dedicated log partition without a partition table.

Add a partition table when building a non-ISO image, using the mbr.bin
provided by syslinux (since we are already using syslinux to invoke
the ipxe.lkrn within the FAT filesystem).

The BIOS .usb targets are built using a manually constructed partition
table with C/H/S geometry x/64/32.  Match this geometry to minimise
the differences between genfsimg and non-genfsimg USB disk images.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/util/genfsimg