Bug 29272

Summary: make release (RELENG_4) fails: kern.flp is overfull (GENERIC kernel bloat)
Product: Base System Reporter: Adrian Steinmann <ast>
Component: confAssignee: David E. O'Brien <obrien>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.3-RELEASE   
Hardware: Any   
OS: Any   

Description Adrian Steinmann 2001-07-28 08:20:01 UTC
	'make release' fails as cpio populates the vn0 device on /mnt for
	the boot.flp: space is just a bit too scarce for the ever-growing
	/kernel.gz file.

Fix: boot.flp and kern.flp do not need /boot/boot? files, since
	they are on the mfsroot image, those are used by the ramdisk
	programs anyway (this saves 1k). /boot/loader can be kgzip-ed
	to save another 40k.

	The following patch to src/release/Makefile does that, buying
	us some time until kernel.gz will have used up the gained 41k:



Adrian Steinmann
_________________________________________________________________________
Dr. Adrian Steinmann  Steinmann Consulting  Apollostrasse 21  8032 Zurich
   Tel +41 1 380 30 83     Fax +41 1 380 30 85    Mailto:ast@marabu.ch--RFEQGPnfDp7fxg0CXGpi3LOan0rV6EXwUKif1f4N6ts9v5OU
Content-Type: text/plain; name="file.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="file.diff"

*** release/Makefile.orig	Fri Jul 27 07:55:30 2001
--- release/Makefile	Fri Jul 27 07:57:51 2001
***************
*** 900,906 ****
  	mv ${RD}/kernels/BOOTMFS ${RD}/image.${FSIMAGE}/kernel
  	@echo "Setting up /boot directory for ${FSIMAGE} floppy"
  	@mkdir -p ${RD}/image.${FSIMAGE}/boot
! 	@cp /boot/boot[12] /boot/loader ${RD}/image.${FSIMAGE}/boot
  .if !defined(FDSIZE) || ${FDSIZE} != "BIG"
  	@echo "load /kernel" > ${RD}/image.${FSIMAGE}/boot/loader.rc
  	@echo "echo \\007\\007" >> ${RD}/image.${FSIMAGE}/boot/loader.rc
--- 900,906 ----
  	mv ${RD}/kernels/BOOTMFS ${RD}/image.${FSIMAGE}/kernel
  	@echo "Setting up /boot directory for ${FSIMAGE} floppy"
  	@mkdir -p ${RD}/image.${FSIMAGE}/boot
! 	@kgzip -vo ${RD}/image.${FSIMAGE}/boot/loader /boot/loader
  .if !defined(FDSIZE) || ${FDSIZE} != "BIG"
  	@echo "load /kernel" > ${RD}/image.${FSIMAGE}/boot/loader.rc
  	@echo "echo \\007\\007" >> ${RD}/image.${FSIMAGE}/boot/loader.rc
How-To-Repeat: 	cvsup, make release RELEASETAG=RELENG_4 CVSROOT=Your_CVSROOT
Comment 1 dd freebsd_committer freebsd_triage 2001-07-28 08:23:05 UTC
Responsible Changed
From-To: freebsd-bugs->obrien

David is working (or has fixed?) this. 
David: this one includes a suggestion, so you may want to look at it even 
if you already fixed it.
Comment 2 David E. O'Brien freebsd_committer freebsd_triage 2001-08-04 06:55:02 UTC
State Changed
From-To: open->closed

committed, thanks!