From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1SCfv4-0003LI-I1 for garchives@archives.gentoo.org; Tue, 27 Mar 2012 23:35:18 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D6678E0AB4; Tue, 27 Mar 2012 23:35:03 +0000 (UTC) Received: from mail.muc.de (colin.muc.de [193.149.48.1]) by pigeon.gentoo.org (Postfix) with ESMTP id 6C23AE07B2 for ; Tue, 27 Mar 2012 23:33:38 +0000 (UTC) Received: (qmail 43311 invoked by uid 3782); 27 Mar 2012 23:33:38 -0000 Received: from acm.muc.de (pD951AFEC.dip.t-dialin.net [217.81.175.236]) by colin.muc.de (tmda-ofmipd) with ESMTP; Wed, 28 Mar 2012 01:33:36 +0200 Received: (qmail 3890 invoked by uid 1000); 27 Mar 2012 23:32:22 -0000 Date: Tue, 27 Mar 2012 23:32:22 +0000 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Re: After /usr conflation: why not copy booting software to /sbin rather than initramfs? Message-ID: <20120327233222.GD3437@acm.acm> References: <20120327133728.GA3754@acm.acm> <01c301cd0c22$2fac1300$8f043900$@kutulu.org> <20120327142646.GB3754@acm.acm> <20120327154620.21440f87@digimed.co.uk> <86iphq0vza.fsf@jane.chrekh.se> <003e01cd0c53$a2e99b90$e8bcd2b0$@kutulu.org> <20120327212422.GA3437@acm.acm> <20120327224153.368e30b5@digimed.co.uk> <20120327220128.GB3437@acm.acm> <20120328003927.10442dff@khamul.example.com> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20120328003927.10442dff@khamul.example.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-Delivery-Agent: TMDA/1.1.12 (Macallan) From: Alan Mackenzie X-Primary-Address: acm@muc.de X-Archives-Salt: e5976ee0-8afc-493a-b913-27ece880543a X-Archives-Hash: fd05bc503b0ef273e1871e4965485106 Hello again, Alan. On Wed, Mar 28, 2012 at 12:39:27AM +0200, Alan McKinnon wrote: > On Tue, 27 Mar 2012 22:01:28 +0000 > Alan Mackenzie wrote: > > Hello, Neil. > > On Tue, Mar 27, 2012 at 10:41:53PM +0100, Neil Bothwick wrote: > > > On Tue, 27 Mar 2012 21:24:22 +0000, Alan Mackenzie wrote: > > > > That is precisely what the question was NOT about. The idea was > > > > to copy (not move) booting software to /sbin instead of an > > > > initramfs - the exact same programs, modulo noise - to have the > > > > SW in /sbin necessary to mount /usr. > > > Your package manager only knows about the copy in the original > > > location. > > So? The same applies to a copy in the initramfs. > No it doesn't. The initramfs is a transient file system contained > within a single file. To the package manager, it is just a file, one > with a rather unique name that portage is highly unlikely to try and > overwrite. > Copying binaries into / means you are copying a large number of files > into an area managed by the package manager. Those files have names and > locations that are rather likely to be used by ebuilds. Ah. I was looking forward to the sad time when package managers will be installing things exclusively on /usr. Well, OK, on /etc too, but certainly not to /sbin (which will probably have been abolished). > Do we really have to spell out to you why this is a bad idea? No, I can get that. ;-) > > > 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. > Your copies will be used in preference to the originals in /usr. You > will have to detect this yourself when this occurs and re-copy them and > portage cannot help you. I was thinking of using /sbin for booting, then removing it from $PATH as soon as /usr gets mounted. > Remember the primary difference between / and an initramfs: > The initramfs is transient and it's contents are not available to > confuse the system once early boot is over. > / is a permanent file system that is always around, and always there to > confuse the issue. OK. I take /sbin off $PATH, like I said above. > This is not a small trivial issue, it is huge, and a magnificent > bug-injection system. OK2. I don't like BI systems. > > I'm still trying to see the reason why an /sbin with the same > > contents as a putative initramfs won't work. > Oh, it will work for booting all right. It's the issues it will cause > after booting when it should no longer be there that is the problem. We're going to be stuck with some issues anyway, no matter how we cope with things. At the moment, I've got my /usr on RAID1, which I think doubles up the speed things load at. (It's on LVM2 too, but that's by the way.) I really don't want a fragile initramfs. Sooner or later, I'd put some slight glitch into it and the result would be a dead PC. Either that or I'll be scared stiff of touching it, which isn't how a Gentoo user is supposed to be. Do I really want to take my /usr off RAID1, just so I can amalgamate it with /? There's no getting round duplicating executables once the single /usr crowd have got their way. The only question is where you put the duplicates, and how you make sure they don't foul things up. > -- > Alan McKinnnon > alan.mckinnon@gmail.com -- Alan Mackenzie (Nuremberg, Germany).