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
Kristian Klausen
25b15bce09
Include ext{3,4} journal size when calculating image size
...
Fix #801712
2016-04-16 22:18:22 +02:00
Daniel Baumann
242aef5d83
Updating year in copyright notices to 2015.
2015-01-04 20:05:44 +01:00
Daniel Baumann
eb336bb782
Updating copyright notices for 2014.
2014-02-08 17:47:24 +01:00
Daniel Baumann
59ce459f40
Removing all references to my old email address.
2013-05-06 14:50:06 +02:00
Raphaël Hertzog
212e5bedd3
Increasing oversizing factor of ext* filesystems from 5 to 6%.
...
At least on armel with ext4, 5% turned out to not be enough in some use
cases. With 6% the failure was gone.
2013-05-06 14:50:06 +02:00
Daniel Baumann
04cec317cc
Removing incomplete support for root-command.
2013-05-06 14:50:06 +02:00
Daniel Baumann
62d94a4454
Updating year in all copyright notices.
2013-05-06 14:50:03 +02:00
Daniel Baumann
d1047e809a
Adding debian version 4.0~a1-1.
2013-05-06 14:48:46 +02:00
Daniel Baumann
a203b86fdd
Updating year in all copyright notices.
2013-01-01 00:13:01 +01:00
Daniel Baumann
508510e097
Updating GPL standard header in all files.
2012-07-30 18:19:27 +02:00
Daniel Baumann
822dc2c028
Updating year in copyright notices for 2012.
2012-02-06 23:15:12 +01:00
Daniel Baumann
e92e0b7f4a
Also setting 5% margin for ext4 images, thanks to Neil Wilson <neil@aldur.co.uk> for spotting it ( Closes : #647601 ).
2011-11-04 13:45:37 +01:00
Daniel Baumann
dfde086f35
Only calling udevadm in losetup function when udev is installed on the host system.
2011-08-27 20:50:19 +02:00
Cody A.W. Somerville
0d2cc22efc
Adding function for more resilient detachment of loopback devices.
2011-07-21 17:00:54 +02:00
Daniel Baumann
18eeaae602
Updating year in hooks and script files.
2011-03-09 19:20:42 +01:00
Daniel Baumann
c5c3f6133a
Adding debian version 3.0~a1-1.
2011-03-09 19:19:23 +01:00
Daniel Baumann
2ddc0cef5d
Updating year in manpage, hooks, script and template files.
2011-03-09 19:17:33 +01:00
Daniel Baumann
83bc63f725
Updating internal variables from lh to lb scheme, should be the last piece to finish the live-helper to live-build rename.
2011-03-09 19:17:21 +01:00
Daniel Baumann
4d22ca948a
Updating copyright headers for live-build.
2011-03-09 19:17:18 +01:00
Daniel Baumann
54518852c8
Updating year to 2010 in copyright notices.
2011-03-09 19:17:04 +01:00
Cody A.W. Somerville
605af52623
Fixing intermittent truncating of filesystem.
2011-03-09 19:09:48 +01:00
Daniel Baumann
07d089fa55
Correcting typo in default values assignment of losetup functions.
2011-03-09 19:09:45 +01:00
Daniel Baumann
989f26d87b
Updating year in copyright notices for 2009.
2011-03-09 19:09:40 +01:00
Daniel Baumann
37d2fb4b0f
Don't use set -e in sourced functions, this is the job of the actual executed script.
2011-03-09 19:03:43 +01:00
Chris Lamb
8d373e005b
Refactor partition size calculation, ensuring a uniform increase for ext partitions.
2011-03-09 19:03:41 +01:00
Tiago Bortoletto Vaz
6205a24620
Adding last modifications in order to have localization fully working in live-helper. This commit goes with some pt_BR translations just for testing. Thanks to Antonio Terceiro for helping and coding in some shell stuff.
2011-03-09 19:03:38 +01:00
Otavio Salvador
48a2346ab0
functions/losetup.sh: use SECTORS as variable name to reflect the real usage
2011-03-09 19:01:48 +01:00
Daniel Baumann
c5a91189a0
Updating copyright years to 2008.
2011-03-09 19:01:41 +01:00
Daniel Baumann
342d2870eb
Consistently using the pipe as seperator in sed commands now.
2011-03-09 18:35:39 +01:00
Daniel Baumann
d27d316160
Fixing typing error.
2011-03-09 18:22:29 +01:00
Daniel Baumann
c6236a0794
Moving lh_losetup into an internal function, avoiding helper failure with return value due to new trap.
2011-03-09 18:22:29 +01:00