Bug#647607: live-build: binary_hdd partition size needs some thought
Package: live-build
Version: 3.0~a24-1ubuntu17
Severity: normal
In binary_hdd the partition is created with size '0.0 100%'. On a
msdos partition table this will make the installation of bootloaders
problematic, and on GPT partitions lots of fun. Parted can be a bit dumb
depending on the version.
http://en.wikipedia.org/wiki/BIOS_Boot_partition
http://en.wikipedia.org/wiki/GUID_Partition_Table
Other partition2disk systems leave at least 64 sectors at the beginning
of the disk for msdos partitions. guestfs leaves 64 512 byte sectors
front and back as GPT backs up at the end of the disk.
The 'mkpart' size spec I use is '64s -65s' which aligns with 4K page
sizes as well and seems to give maximum compatibility over time without
wasting too much space on smaller image sizes.
Newer versions of parted will align properly if you use '0% 100%' -
which leaves 2048 sectors at the front of the disk and 2015 sectors at
the back with a gpt table.
-- Package-specific info:
-- System Information:
Debian Release: wheezy/sid
APT prefers oneiric-updates
APT policy: (500, 'oneiric-updates'), (500, 'oneiric-security'), (500, 'oneiric')
Architecture: amd64 (x86_64)
Kernel: Linux 3.0.0-12-virtual (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages live-build depends on:
ii cdebootstrap 0.5.7ubuntu2 Bootstrap a Debian system
ii debootstrap 1.0.37 Bootstrap a basic Debian system
Versions of packages live-build recommends:
ii cpio 2.11-7ubuntu1 GNU cpio -- a program to manage ar
ii gettext-base 0.18.1.1-3ubuntu1 GNU Internationalization utilities
Versions of packages live-build suggests:
ii dosfstools 3.0.9-1ubuntu3 utilities for making and checking
pn genisoimage <none> (no description available)
pn gnu-fdisk <none> (no description available)
ii memtest86+ 4.20-1ubuntu1 thorough real-mode memory tester
pn mtools <none> (no description available)
ii parted 2.3-6ubuntu3 disk partition manipulator
pn squashfs-tools | mtd-to <none> (no description available)
ii sudo 1.7.4p6-1ubuntu2 Provide limited super user privile
pn syslinux | grub <none> (no description available)
ii uuid-runtime 2.19.1-2ubuntu3 runtime components for the Univers
pn win32-loader <none> (no description available)
-- no debconf information
Reply to: