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

Tim Kientzle kientzle at freebsd.org
Sun Oct 17 14:25:23 PDT 2004


I suggest patching /etc/rc.d/initdiskless instead:

@@ -299,13 +299,13 @@
             cp -Rp $j/* /$subdir
         fi
      done
-    for j in /conf/$i/*.cpio.gz ; do
+    for j in /conf/$i/*.cpio ; do
         subdir=${j%*.cpio.gz}
         subdir=${subdir##*/}
         if [ -f $j ]; then
             create_md $subdir
             echo "Loading /$subdir from cpio archive $j"
-           (cd / ; /stand/gzip -d < $j | /stand/cpio --extract -d )
+           (cd / ; /bin/cat < $j | /bin/pax -r )
         fi
      done
      for j in /conf/$i/*.remove ; do

For some reason, people keep forgetting
that /bin/pax can read cpio archives.
This patch also eliminates the use of gzip
(at the cost of requiring an uncompressed archive,
which should not be a problem in practice).
If you prefer, you could use /rescue/gzip
instead.

Cheers,

Tim

spam maps wrote:
> Hello,
> 
> This is 5.3-Beta7.
> 
> Earlier I sensed that /stand/ is more or less
> redundant (that all is in /rescue/ with 5.X), so
> I deleted this directory.
> 
> However, now that I want to use diskless-bootup,
> I seem to need /stand/ again.
> 
> Is there a way to get it back?
> 
> Thanks,
> Rob.
> 
> PS: using /rescue/ for that instead would be really
> nice :).
> 
> 
> 		
> _______________________________
> Do you Yahoo!?
> Declare Yourself - Register online to vote today!
> http://vote.yahoo.com
> _______________________________________________
> freebsd-current at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe at freebsd.org"
> 
> 




More information about the freebsd-current mailing list