Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-user
Navigation:
Lists: gentoo-user: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-user@g.o
From: Neil Bothwick <neil@...>
Subject: Re: Re: After /usr conflation: why not copy booting software to /sbin rather than initramfs?
Date: Tue, 27 Mar 2012 23:53:00 +0100
On Tue, 27 Mar 2012 22:01:28 +0000, Alan Mackenzie wrote:

> > Your package manager only knows about the copy in the original
> > location.  
> 
> So?  The same applies to a copy in the initramfs.

No it does not. the initramfs is built using the versions installed on
your system, and unloaded as soon as root is switched to /. At no time
are two different versions available in your path.

> > When you update you'll have multiple versions of the same program or
> > library in your path.  
> 
> Well, with the manual/script copying which needs doing either for /sbin
> or initramfs, that will be several copies of a program, not several
> versions.

Multiple copies of the same version is inefficient, multiple versions is
potentially disastrous.

> I'm still trying to see the reason why an /sbin with the same contents
> as a putative initramfs won't work.

You seem to be trying very hard to ignore the point that the initramfs
does not need to contain as much as /usr or even /. It only needs to
contain the files required to mount / and /usr. this can be as few as 2,
busybox and the init script. Even with encrypted filesystems on LVM
volumes running on RAID, this box's initramfs contains only 5 files.

% grep file /usr/src/init.cfg
file /bin/busybox /bin/busybox 755 0 0
file /sbin/lvm.static /sbin/lvm.static 755 0 0
file /sbin/mdadm /sbin/mdadm 755 0 0
file /sbin/cryptsetup /sbin/cryptsetup 755 0 0
file /init /usr/src/init.sh 755 0 0


-- 
Neil Bothwick

"Press Return to Continue" - known as "The Mail Menupause".
Attachment:
signature.asc (PGP signature)
References:
After /usr conflation: why not copy booting software to /sbin rather than initramfs?
-- Alan Mackenzie
RE: After /usr conflation: why not copy booting software to /sbin rather than initramfs?
-- Mike Edenfield
Re: After /usr conflation: why not copy booting software to /sbin rather than initramfs?
-- Alan Mackenzie
Re: After /usr conflation: why not copy booting software to /sbin rather than initramfs?
-- Neil Bothwick
Re: After /usr conflation: why not copy booting software to /sbin rather than initramfs?
-- che
RE: Re: After /usr conflation: why not copy booting software to /sbin rather than initramfs?
-- Mike Edenfield
Re: Re: After /usr conflation: why not copy booting software to /sbin rather than initramfs?
-- Alan Mackenzie
Re: Re: After /usr conflation: why not copy booting software to /sbin rather than initramfs?
-- Neil Bothwick
Re: Re: After /usr conflation: why not copy booting software to /sbin rather than initramfs?
-- Alan Mackenzie
Navigation:
Lists: gentoo-user: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Re: Re: After /usr conflation: why not copy booting software to /sbin rather than initramfs?
Next by thread:
Re: Re: After /usr conflation: why not copy booting software to /sbin rather than initramfs?
Previous by date:
Re: InitRAMFS - boot expert sought
Next by date:
Re: Re: After /usr conflation: why not copy booting software to /sbin rather than initramfs?


Updated May 04, 2012

Summary: Archive of the gentoo-user mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.