Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Jul 2001 09:08:38 +0200 (MEST)
From:      ast@marabu.ch
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   conf/29272: make release (RELENG_4) fails (kern.flp is overfull)
Message-ID:  <200107280708.f6S78cO26860@srv.marabu.ch>

next in thread | raw e-mail | index | archive | help

>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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200107280708.f6S78cO26860>