NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

install/56132: build.sh target install-image fails in update-mode



>Number:         56132
>Category:       install
>Synopsis:       build.sh in update mode fails for target install-image
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    install-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Apr 26 21:40:00 +0000 2021
>Originator:     Paul Goyette
>Release:        NetBSD 9.99.81
>Organization:
+--------------------+--------------------------+-----------------------+
| Paul Goyette       | PGP Key fingerprint:     | E-mail addresses:     |
| (Retired)          | FA29 0E3B 35AF E8AE 6651 | paul%whooppee.com@localhost     |
| Software Developer | 0786 F758 55DE 53BA 7731 | pgoyette%netbsd.org@localhost   |
+--------------------+--------------------------+-----------------------+
>Environment:
	
	
System: NetBSD speedy.whooppee.com 9.99.81 NetBSD 9.99.81 (SPEEDY 2021-04-16 18:08:17 UTC) #1: Fri Apr 16 19:24:03 UTC 2021 paul%speedy.whooppee.com@localhost:/build/netbsd-local/obj/amd64/sys/arch/amd64/compile/SPEEDY amd64
Architecture: x86_64
Machine: amd64
>Description:
(Note: PR category set to "install" - please advise if there is a
better category to use.)

If you run ``build.sh ... install-image'' but the build fails because
the INSTIMAGEMB value is too small, even if you update the variable's
value sufficiently, a subsequent ``build.sh ... -u install-image'' will
still fail.  It appears to still be using incorrect MBR and/or GPT data
from the original build.sh invocation.
	
>How-To-Repeat:
See above.

For example, after craeting a complete release you can try

./build.sh	-T /build/netbsd-local/tools/x86_64/amd64 \
		-D /build/netbsd-local/dest/amd64 \
		-O /build/netbsd-local/obj/amd64 \
		-R /build/netbsd-local/release \
		-V RELEASEMACHINEDIR=amd64 -V MKDEBUG=yes \
		-V MKKDEBUG=yes -V MKDEBUGLIB=yes \
		-V KERNEL_DIR=no -V MKPAM=no -U -x -N2 -m amd64 \
		-j1 -V INSTIMAGEMB=1600 install-image

This will fail due to the too-small value for INSTIMAGEMB:

nbmakefs: `work' size of 1611005952 is larger than the maxsize of 1541406720.

Then retry an update with

./build.sh	-T /build/netbsd-local/tools/x86_64/amd64 \
		-D /build/netbsd-local/dest/amd64 \
		-O /build/netbsd-local/obj/amd64 \
		-R /build/netbsd-local/release \
		-V RELEASEMACHINEDIR=amd64 -V MKDEBUG=yes \
		-V MKKDEBUG=yes -V MKDEBUGLIB=yes \
		-V KERNEL_DIR=no -V MKPAM=no -U -x -N2 -m amd64 \
		-j1 -V INSTIMAGEMB=1700 -u install-image

This will result in a failure which appears to be gpt-related:

nbgpt: work.img: No secondary GPT header; run recover

	
>Fix:
Please
	

>Unformatted:
 	
 	


Home | Main Index | Thread Index | Old Index