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

From: Rob <spamrefuse_at_yahoo.com>
Date: Mon, 18 Oct 2004 20:22:57 +0900
Ryan Sommers wrote:
> Tim Kientzle wrote:
> 
>> Two things to check:
>>
>> 1) ldd /bin/pax
>>
>>    should show you what shared libraries are
>>    required by /bin/pax.  Make sure those are
>>    all available on the root partition.
>>
>> 2) From the ordinary command line, try
>>
>>      cat [[one of /conf/$i/*.cpio.gz]] | /rescue/gzip -d | /bin/pax
>>
>>    and check that /bin/pax is correctly
>>    recognizing the format of the archive.
>>
>> Of course, it's also worth trying the two changes
>> here (/rescue/gzip for /stand/gzip and /bin/pax
>> for /stand/cpio) separately, just to isolate
>> the problem.
>>
>> Cheers,
>>
>> Tim
> 
> 
> I'll give you a better patch tomorrow to try. In the meantime, instead 
> of catting. Try using
> 
> ( cd / ; /rescue/gzip -d $j.cpio.gz | pax -r -p e )
> 
> I believe this works, if it doesn't try
> 
> ( cd / ; /rescue/gzip -d  < $j.cpio.gz | pax -r -p e )

I tried the second version:

      (cd / ; /rescue/gzip -d  < $j | /bin/pax -r -p e )

but it doesn't work. What does work is this:

      (cd / ; /rescue/gzip -d < $j | /stand/cpio --extract -d )

So apparently this 'pax' solution is not as straight forward
as it seems.

However, after the boot up has succeeded, I can do manually:

  # cd /var
  # rm -rf *
  # /rescue/gzip -d < /conf/base/var.cpio.gz | /bin/pax -r -p e

and the basic /var structure is there again. So it works on
a running diskless system; why not during bootup?

Rob.
Received on Mon Oct 18 2004 - 09:23:03 UTC

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