Re: I deleted /stand/, but I need it again for diskless boot...

From: Ryan Sommers <ryans_at_gamersimpact.com>
Date: Mon, 18 Oct 2004 12:17:41 -0600 (MDT)
Rob said:
> I'm willing to try just anything.
> The problem is that I'm not familiar with the cpio and pax commands.

Ok, here is a patch for /etc/rc.d/initdiskless. Note, I currently don't
have a diskless system to test on, I'm still looking for some PXE hardware
that isn't being used in production that I can use to work with cleaning
up the diskless environment for 5.x. So, I make no promises. :)

Index: initdiskless
===================================================================
RCS file: /home/ncvs/src/etc/rc.d/initdiskless,v
retrieving revision 1.39
diff -u -r1.39 initdiskless
--- initdiskless        7 Oct 2004 13:55:26 -0000       1.39
+++ initdiskless        18 Oct 2004 18:03:23 -0000
_at__at_ -305,7 +305,7 _at__at_
        if [ -f $j ]; then
            create_md $subdir
            echo "Loading /$subdir from cpio archive $j"
-           (cd / ; /stand/gzip -d < $j | /stand/cpio --extract -d )
+           (cd / ; pax -rz -p e -f $j )
        fi
     done
     for j in /conf/$i/*.remove ; do

Now, in addition to this you will need my other patch that moves gzip to
/bin instead of /usr/bin. You can download it at
http://208.4.77.15/gzip-to-bin.tgz

To add it to your source tree: cd /usr/src (or your respective directory)
; tar zxvf /path/to/gzip-to-bin.tgz ; rm -rf gnu/usr.bin/gzip

Then a regular build/install world, and you'll have to remake your NFS
mounted root. I tested this patch with a build/install world this morning.

> I don't understand this, mainly because I'm not familiar with cpio
> and pax. At present I generate the var.cpio.gz and etc.cpio.gz,
> as follows:

Ignore what I said. Didn't mean to confuse you.

-- 
Ryan Sommers
ryans_at_gamersimpact.com
Received on Mon Oct 18 2004 - 16:09:59 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:18 UTC