live-build/debian
Matthijs Kooijman 4c229d9449 Pass --partscan to losetup
Recent versions of Linux, parted or some other bit of software cause
partition devices, like /dev/loop0p1 to be created when running parted
mkpart. However, these devices are not cleaned up when running
losetup -d to remove /dev/loop0 later, so they linger around and confuse
mkfs (which refuses to make a filesystem, thinking there are partitions):

	mkfs.fat 4.1 (2017-01-24)
	mkfs.vfat: Partitions or virtual mappings on device '/dev/loop0', not making filesystem (use -I to override)

To prevent this behaviour, pass --partscan to losetup when adding a new
partition, to clean up any lingering partitions. It seems losetup does not
accept --partscan when deleting a loop device, to clean up at that point, but
since binary_hdd mounts the partition last, there should not be any lingering
partition devices after live-build is done.

The --partscan option is available since util-linux 2.21 (released in 2012), so
it should be fairly safe to pass it unconditionally.
2017-09-01 10:07:00 +02:00
..
source Ignore some lintian errors which are making debuild fail... 2016-11-28 20:58:19 +01:00
changelog Pass --partscan to losetup 2017-09-01 10:07:00 +02:00
compat Bump debhelper compat level to 10. 2016-11-28 23:07:18 +01:00
control Auto-update version strings in manual pages. 2017-08-29 15:14:04 +02:00
copyright Drop all references to live-systems.org and update copyright file 2017-08-29 14:12:33 +02:00
live-build.bug-presubj Drop all references to live-systems.org and update copyright file 2017-08-29 14:12:33 +02:00
live-build.bug-script Dropping unuseful information from bug-script (Closes: ). 2015-01-04 19:25:22 +01:00
live-build.lintian-overrides Adding lintian overrides for symlink-should-be-relative (bootloader configs need to use absolute symlinks on purpose to allow chrooted builds). 2012-02-12 22:06:27 +01:00
rules Auto-update version strings in manual pages. 2017-08-29 15:14:04 +02:00