Bug#865586: live-build: binary_hdd failed with mkfs.vfat error
Package: live-build
Version: 1:20170213
Severity: important
Dear Maintainer,
The 'lb binary_hdd' script halt with a mkfs.vfat error when build a FAT32 or FAT16 hdd image
With a simple live-build config, I launched the whole building process that halt with this error (that is not shown as error):
[2017-06-22 20:12:00] lb binary_hdd
P: Begin building binary hdd image...
0+0 records in
0+0 records out
0 bytes copied, 2.743e-05 s, 0.0 kB/s
!!! The following error/warning messages can be ignored !!!
P: Mounting /dev/loop1 with offset 0
1+0 records in
1+0 records out
440 bytes copied, 0.0265552 s, 16.6 kB/s
P: Mounting /dev/loop1 with offset 1048576
mkfs.fat 4.1 (2017-01-24)
mkfs.vfat: Partitions or virtual mappings on device '/dev/loop1', not making filesystem (use -I to override)
P: Begin unmounting filesystems...
P: Saving caches...
Reading package lists... Done
Building dependency tree
Reading state information... Done
It seems that mkfs.vfat gives the answer: '-I' in command call
-- Package-specific info:
-- System Information:
Debian Release: 9.0
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 4.9.0-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages live-build depends on:
ii debootstrap 1.0.90
Versions of packages live-build recommends:
ii apt-utils 1.4.6
ii cpio 2.11+dfsg-6
ii live-boot-doc 1:20170112
ii live-config-doc 5.20170316
ii live-manual-html [live-manual] 2:20151217.1
ii wget 1.19.1-3
live-build suggests no packages.
-- no debconf information
--- binary_hdd-orig 2017-06-22 20:16:11.927603985 +0200
+++ binary_hdd 2017-06-22 20:16:39.211437132 +0200
@@ -223,13 +223,13 @@
fat16)
MKFS="vfat"
- MKFS_OPTIONS="-F 16 -n ${LB_HDD_LABEL}"
+ MKFS_OPTIONS="-F 16 -n ${LB_HDD_LABEL} -I"
MOUNT_OPTIONS=""
;;
fat32)
MKFS="vfat"
- MKFS_OPTIONS="-F 32 -n ${LB_HDD_LABEL}"
+ MKFS_OPTIONS="-F 32 -n ${LB_HDD_LABEL} -I"
MOUNT_OPTIONS=""
;;
Reply to: