live-build/functions
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
..
aliases.sh Don't truncate files outside the build chroot. 2015-04-26 20:20:24 +02:00
architectures.sh Updating year in copyright notices to 2015. 2015-01-04 20:05:44 +01:00
arguments.sh Updating year in copyright notices to 2015. 2015-01-04 20:05:44 +01:00
bootloaders.sh Fix permission on functions/bootloaders.sh 2016-11-28 23:15:38 +01:00
breakpoints.sh Updating year in copyright notices to 2015. 2015-01-04 20:05:44 +01:00
cache.sh Updating stat calls to also give the right result in container setups, thanks to Kristian Klausen <klausenbusk@hotmail.com> (Closes: #789300). 2015-08-10 21:45:00 +02:00
chroot_bind_path.sh Making functions/chroot_bind_path.sh executable within the source tree (Closes: #777096). 2015-02-07 06:46:45 +01:00
chroot.sh Export SOURCE_DATE_EPOCH when running chroot commands 2016-11-28 20:58:19 +01:00
color.sh Updating year in copyright notices to 2015. 2015-01-04 20:05:44 +01:00
common.sh Updating year in copyright notices to 2015. 2015-01-04 20:05:44 +01:00
conffile.sh Updating year in copyright notices to 2015. 2015-01-04 20:05:44 +01:00
configuration.sh Updating year in copyright notices to 2015. 2015-01-04 20:05:44 +01:00
cursor.sh Updating year in copyright notices to 2015. 2015-01-04 20:05:44 +01:00
defaults.sh Update PREPARER data for consistency 2017-08-29 15:06:35 +02:00
echo.sh Updating year in copyright notices to 2015. 2015-01-04 20:05:44 +01:00
exit.sh Updating year in copyright notices to 2015. 2015-01-04 20:05:44 +01:00
help.sh Drop all references to live-systems.org and update copyright file 2017-08-29 14:12:33 +02:00
lockfile.sh Updating year in copyright notices to 2015. 2015-01-04 20:05:44 +01:00
losetup.sh Pass --partscan to losetup 2017-09-01 10:07:00 +02:00
man.sh Updating year in copyright notices to 2015. 2015-01-04 20:05:44 +01:00
packagelists.sh Fix behaviour of (undocumented) "#nif" conditional test 2016-11-28 20:58:19 +01:00
packages.sh Fix Check_installed function when checking against host 2016-11-28 22:50:46 +01:00
stagefile.sh Updating year in copyright notices to 2015. 2015-01-04 20:05:44 +01:00
usage.sh Updating year in copyright notices to 2015. 2015-01-04 20:05:44 +01:00
wrapper.sh Updating year in copyright notices to 2015. 2015-01-04 20:05:44 +01:00