[Bug 210463] release build; makefs: error: The Disk Label must be at most 32 characters long
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Wed Jun 22 13:15:59 UTC 2016
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=210463
Bug ID: 210463
Summary: release build; makefs: error: The Disk Label must be
at most 32 characters long
Product: Base System
Version: 10.3-RELEASE
Hardware: amd64
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: misc
Assignee: freebsd-bugs at FreeBSD.org
Reporter: vmiller at hostileadmin.com
CC: freebsd-amd64 at FreeBSD.org
CC: freebsd-amd64 at FreeBSD.org
Created attachment 171673
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=171673&action=edit
Patch truncates LABEL to 32 characters thus preventing the stop error described
in the bug report
My private FreeBSD distribution modifies newvers.sh implementing a custom
version scheme used internally to allow engineers to quickly discern what
version of the FreeBSD OS is installed. This modification often leads to
VOLUME_LABEL and LABEL being a size greater than 32 characters during release
builds.
Performing a release build via release/release.sh where these environment
variables are often greater than 32 characters in this scenario produces a stop
error at the end of the release.sh process when generating the UEFI disk image
as observed below:
sh /usr/src/release/amd64/mkisoimages-uefi.sh -b
10_3_RELEASE_p3_CUSTM_0_amd64_UEFICD uefi-disc1.iso disc1
200+0 records in
200+0 records out
819200 bytes transferred in 0.002648 secs (309379960 bytes/sec)
newfs_msdos: cannot get number of sectors per track: Operation not supported
newfs_msdos: cannot get number of heads: Operation not supported
newfs_msdos: trim 25 sectors to adjust to a multiple of 63
/dev/md0: 1532 sectors in 1532 FAT12 clusters (512 bytes/cluster)
BytesPerSec=512 SecPerClust=1 ResSectors=1 FATs=2 RootDirEnts=512 Sectors=1575
Media=0xf8 FATsecs=5 SecPerTrack=63 Heads=1 HiddenSecs=0
makefs: error: The Disk Label must be at most 32 characters long
usage: makefs [-t fs-type] [-o fs-options] [-d debug-mask] [-B endian]
[-S sector-size] [-M minimum-size] [-m maximum-size] [-R roundup-size]
[-s image-size] [-b free-blocks] [-f free-files] [-F mtree-specfile]
[-xZ] [-N userdb-dir] image-file directory | manifest [extra-directory
...]
sh /usr/src/release/amd64/mkisoimages-uefi.sh -b
10_3_RELEASE_p3_CUSTM_0_amd64_UEFIBO uefi-bootonly.iso bootonly
200+0 records in
200+0 records out
819200 bytes transferred in 0.002599 secs (315198040 bytes/sec)
newfs_msdos: cannot get number of sectors per track: Operation not supported
newfs_msdos: cannot get number of heads: Operation not supported
newfs_msdos: trim 25 sectors to adjust to a multiple of 63
/dev/md0: 1532 sectors in 1532 FAT12 clusters (512 bytes/cluster)
BytesPerSec=512 SecPerClust=1 ResSectors=1 FATs=2 RootDirEnts=512 Sectors=1575
Media=0xf8 FATsecs=5 SecPerTrack=63 Heads=1 HiddenSecs=0
makefs: error: The Disk Label must be at most 32 characters long
usage: makefs [-t fs-type] [-o fs-options] [-d debug-mask] [-B endian]
[-S sector-size] [-M minimum-size] [-m maximum-size] [-R roundup-size]
[-s image-size] [-b free-blocks] [-f free-files] [-F mtree-specfile]
[-xZ] [-N userdb-dir] image-file directory | manifest [extra-directory
...]
make -C /usr/src/release release-done
touch release
true
mkdir -p /R
cp -a ftp /R/
cp -p disc1.iso /R/FreeBSD-10.3-RELEASE-p3-VRSN-0-amd64-disc1.iso
cp -p bootonly.iso /R/FreeBSD-10.3-RELEASE-p3-VRSN-0-amd64-bootonly.iso
cp -p memstick.img /R/FreeBSD-10.3-RELEASE-p3-VRSN-0-amd64-memstick.img
cp -p mini-memstick.img
/R/FreeBSD-10.3-RELEASE-p3-VRSN-0-amd64-mini-memstick.img
cp -p uefi-memstick.img
/R/FreeBSD-10.3-RELEASE-p3-VRSN-0-amd64-uefi-memstick.img
cp -p uefi-mini-memstick.img
/R/FreeBSD-10.3-RELEASE-p3-VRSN-0-amd64-uefi-mini-memstick.img
cp -p uefi-disc1.iso /R/FreeBSD-10.3-RELEASE-p3-VRSN-0-amd64-uefi-disc1.iso
cp: uefi-disc1.iso: No such file or directory
*** Error code 1
Stop.
make: stopped in /usr/src/release
The attached patch, applied to mkisoimages-uefi.sh, truncates LABEL to 32
characters thus preventing the stop error.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the freebsd-amd64
mailing list