Date: Wed, 22 Jun 2016 13:15:58 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-amd64@FreeBSD.org Subject: [Bug 210463] release build; makefs: error: The Disk Label must be at most 32 characters long Message-ID: <bug-210463-6@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D210463 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@FreeBSD.org Reporter: vmiller@hostileadmin.com CC: freebsd-amd64@FreeBSD.org CC: freebsd-amd64@FreeBSD.org Created attachment 171673 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D171673&action= =3Dedit Patch truncates LABEL to 32 characters thus preventing the stop error descr= ibed 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 relea= se 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 im= age 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=3D512 SecPerClust=3D1 ResSectors=3D1 FATs=3D2 RootDirEnts=3D512= Sectors=3D1575 Media=3D0xf8 FATsecs=3D5 SecPerTrack=3D63 Heads=3D1 HiddenSecs=3D0 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-si= ze] [-s image-size] [-b free-blocks] [-f free-files] [-F mtree-specfile] [-xZ] [-N userdb-dir] image-file directory | manifest [extra-direct= ory ...] 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=3D512 SecPerClust=3D1 ResSectors=3D1 FATs=3D2 RootDirEnts=3D512= Sectors=3D1575 Media=3D0xf8 FATsecs=3D5 SecPerTrack=3D63 Heads=3D1 HiddenSecs=3D0 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-si= ze] [-s image-size] [-b free-blocks] [-f free-files] [-F mtree-specfile] [-xZ] [-N userdb-dir] image-file directory | manifest [extra-direct= ory ...] 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. --=20 You are receiving this mail because: You are on the CC list for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-210463-6>