Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Aug 2002 12:08:06 -0700 (PDT)
From:      Gaspar Chilingarov <nm@web.am>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   conf/41855: improvment of /etc/rc.diskless2 script
Message-ID:  <200208211908.g7LJ86eI015034@www.freebsd.org>

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

>Number:         41855
>Category:       conf
>Synopsis:       improvment of /etc/rc.diskless2 script
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Aug 21 12:10:02 PDT 2002
>Closed-Date:
>Last-Modified:
>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:
>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?200208211908.g7LJ86eI015034>