makebootfat: Make partitions end at cylinder boundary
Brought to you by:
amadvance
Some operating systems, partitioning programs, and PC BIOSes use the end CHS values for a partition to determine the disk geometry. This only works if the partition ends at a cylinder boundary. This patch implements that change. Because this wastes some disk space, I also added code to recalculate the disk geometry in a way that (usually) wastes slightly less space than CHS=*/255/63.
makebootfat: Make partitions end at cylinder boundary