From owner-freebsd-bugs Sat Jul 28 0:20:10 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id ECD2037B406 for ; Sat, 28 Jul 2001 00:20:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f6S7K2T85762; Sat, 28 Jul 2001 00:20:02 -0700 (PDT) (envelope-from gnats) Received: from oneplusone.ch (oneplusone.ch [212.55.208.170]) by hub.freebsd.org (Postfix) with ESMTP id EB64437B401 for ; 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 X-Send-Pr-Version: 3.113 Subject: conf/29272: make release (RELENG_4) fails (kern.flp is overfull) Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 29272 >Category: conf >Synopsis: make release (RELENG_4) fails: kern.flp is overfull (GENERIC kernel bloat) >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Jul 28 00:20:01 PDT 2001 >Closed-Date: >Last-Modified: >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: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message