From nobody@FreeBSD.org  Wed Aug 21 12:08:08 2002
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 8102437B400
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 21 Aug 2002 12:08:08 -0700 (PDT)
Received: from www.freebsd.org (www.FreeBSD.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 4AB4043E6A
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 21 Aug 2002 12:08:08 -0700 (PDT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.12.4/8.12.4) with ESMTP id g7LJ86OT015035
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 21 Aug 2002 12:08:06 -0700 (PDT)
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.4/8.12.4/Submit) id g7LJ86eI015034;
	Wed, 21 Aug 2002 12:08:06 -0700 (PDT)
Message-Id: <200208211908.g7LJ86eI015034@www.freebsd.org>
Date: Wed, 21 Aug 2002 12:08:06 -0700 (PDT)
From: Gaspar Chilingarov <nm@web.am>
To: freebsd-gnats-submit@FreeBSD.org
Subject: improvment of /etc/rc.diskless2 script
X-Send-Pr-Version: www-1.0

>Number:         41855
>Category:       conf
>Synopsis:       improvment of /etc/rc.diskless2 script
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    brooks
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Aug 21 12:10:02 PDT 2002
>Closed-Date:    Wed Jan 11 16:14:52 GMT 2006
>Last-Modified:  Wed Jan 11 16:14:52 GMT 2006
>Originator:     Gaspar Chilingarov
>Release:        4.6.2
>Organization:
WEB Ltd.
>Environment:
freshly installed 4.6.2 release from CD
>Description:
at very bottom of /etc/rc.diskless2 there are command
(cd /; gzip -dc /tmp/dev.cpio.gz | cpio ..... )

in case when gzip is replaced(hardlinked) with minigzip this fails and system will not boot, because minigzip does not understand -c option. 

Better way is a 
(cd /; cat /tmp/dev.cpio.gz | gzip -d | cpio .... )

this will work both with gzip and minigzip

On embedded system preferable to save space, so extra 100K is a good reason to throw away gzip :)
>How-To-Repeat:
hardlink gzip to minigzip and try to run /etc/rc.diskless2 file for embedded system booting.     
>Fix:
see above     
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->brooks 
Responsible-Changed-By: matteo 
Responsible-Changed-When: Fri Jun 24 06:21:51 GMT 2005 
Responsible-Changed-Why:  
Assign this to brooks as he takes care of diskless issues 

http://www.freebsd.org/cgi/query-pr.cgi?pr=41855 
State-Changed-From-To: open->closed 
State-Changed-By: brooks 
State-Changed-When: Wed Jan 11 16:12:52 UTC 2006 
State-Changed-Why:  
Thanks for your submission. 

We've gone another direction toward using crunched binaries in /rescue 
to avoid using programs such as gzip which ordinairly live in /usr so 
this is overcome by events. 

-- Brooks 

http://www.freebsd.org/cgi/query-pr.cgi?pr=41855 
>Unformatted:
