SPECS (AC-branch): filesystem.spec - release 5: %ghost for /initrd...

Radoslaw Zielinski radek42 at gmail.com
Tue Mar 13 20:46:58 CET 2007


Uh, this reply certainly took me a while.

Elan Ruusamäe <glen at delfi.ee> [12-02-2007 10:19]:
> On Monday 12 February 2007, radek wrote:
>>> why?
>> Because it's impossible to upgrade if old root (from boot time) is
>> mounted on /initrd.  cpio fails on unpacking the *.rpm.

>> It has been broken for quite a while... :-/
> so fix what's broken.

I have fixed what was broken.  At least one part of it.

> it should not be mounted for normal system run.

But it *is* mounted on three of four of my PLD systems.  Which are
working perfectly fine, apart from not being able to upgrade filesystem:

  $ LANG=C poldek -iv filesystem  
  [...]
  I filesystem-2.0-6
  Need to get 10.0KB of archives. 
  Executing sudo /bin/rpm --install -vh --root / --noorder...
  Preparing...                ########################################### [100%]
     1:filesystem             ########################################### [100%]
  error: unpacking of archive failed on file /initrd: cpio: chown failed - Read-only file system

So, you have reverted it to the broken state.  Is this a ping-pong club or
what?

> anyway not being able to umount /initrd (due unmounted /initrd/dev) is fixed 
> in geninitrd 8142.

  $ rpm -q geninitrd
  geninitrd-8286-1

>>> doesn't it break fresh installs as i don't think /initrd is mkdir at boot
>> No.  %ghost %dir creates it.
> no, it does not (go and test it)

Hmm, true.  I must have messed something up while testing this.  Any
better ideas than %ghost and mkdir in %post?

-- 
Radosław Zieliński <radek at pld-linux.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : /mailman/pipermail/pld-devel-en/attachments/20070313/4783ca50/attachment.sig 


More information about the pld-devel-en mailing list