From ast@marabu.ch  Sat Jul 28 00:12:16 2001
Return-Path: <ast@marabu.ch>
Received: from oneplusone.ch (oneplusone.ch [212.55.208.170])
	by hub.freebsd.org (Postfix) with ESMTP id EB64437B401
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 28 Jul 2001 00:12:14 -0700 (PDT)
	(envelope-from ast@marabu.ch)
Received: (from uucp@localhost)
	by oneplusone.ch (8.11.3/8.11.3) with UUCP id f6S7C2W03747;
	Sat, 28 Jul 2001 09:12:02 +0200 (MEST)
	(envelope-from ast@marabu.ch)
Received: from srv.marabu.ch (srv.marabu.ch [192.168.21.2])
	by marabu.ch (8.9.3/2000102801) with ESMTP id JAA17158;
	Sat, 28 Jul 2001 09:09:09 +0200 (CEST)
	(envelope-from ast@marabu.ch)
Received: (from ast@localhost)
	by srv.marabu.ch (8.11.3/8.11.3) id f6S78cO26860;
	Sat, 28 Jul 2001 09:08:38 +0200 (MEST)
	(envelope-from ast)
Message-Id: <200107280708.f6S78cO26860@srv.marabu.ch>
Date: Sat, 28 Jul 2001 09:08:38 +0200 (MEST)
From: ast@marabu.ch
Reply-To: ast@marabu.ch
To: FreeBSD-gnats-submit@freebsd.org
Subject: make release (RELENG_4) fails (kern.flp is overfull)
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         29272
>Category:       conf
>Synopsis:       make release (RELENG_4) fails: kern.flp is overfull (GENERIC kernel bloat)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    obrien
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jul 28 00:20:01 PDT 2001
>Closed-Date:    Fri Aug 3 22:55:02 PDT 2001
>Last-Modified:  Fri Aug 03 22:55:09 PDT 2001
>Originator:     Adrian Steinmann
>Release:        FreeBSD 4.3-RELEASE i386
>Organization:
Steinmann Consulting
>Environment:
System: FreeBSD srv.marabu.ch 4.3-RELEASE FreeBSD 4.3-RELEASE #4: Tue Jul 10 13:13:01 MEST 2001 root@srv.marabu.ch:/usr/src/sys/compile/SRV i386


	Any -stable 'make release' machine, with vn0 devices enabled.
>Description:
	'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.
>How-To-Repeat:
	cvsup, make release RELEASETAG=RELENG_4 CVSROOT=Your_CVSROOT
>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:

*** 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

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
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->obrien 
Responsible-Changed-By: dd 
Responsible-Changed-When: Sat Jul 28 00:23:05 PDT 2001 
Responsible-Changed-Why:  
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. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=29272 
State-Changed-From-To: open->closed 
State-Changed-By: obrien 
State-Changed-When: Fri Aug 3 22:55:02 PDT 2001 
State-Changed-Why:  
committed, thanks! 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=29272 
>Unformatted:
