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 <gentoo-user+bounces-136833-garchives=archives.gentoo.org@lists.gentoo.org>)
	id 1SCbNR-0008FA-50
	for garchives@archives.gentoo.org; Tue, 27 Mar 2012 18:44:17 +0000
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id B9D84E04ED;
	Tue, 27 Mar 2012 18:44:03 +0000 (UTC)
Received: from mail-wg0-f53.google.com (mail-wg0-f53.google.com [74.125.82.53])
	by pigeon.gentoo.org (Postfix) with ESMTP id D4A32E02F0
	for <gentoo-user@lists.gentoo.org>; Tue, 27 Mar 2012 18:42:55 +0000 (UTC)
Received: by wgbfm10 with SMTP id fm10so207619wgb.10
        for <gentoo-user@lists.gentoo.org>; Tue, 27 Mar 2012 11:42:55 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=date:from:to:cc:subject:message-id:in-reply-to:references
         :organization:x-mailer:mime-version:content-type
         :content-transfer-encoding;
        bh=PggcIrr5hv6gcA7d86eaZFOjb6IL/H61q3jFgvqVoZg=;
        b=T/Y1g/mSw1oQU/YEU7dWoi48yhwxvdnfUPFqJf0dIL5LSOfMw7gwOXq2pkEmJi/FgI
         +eWo6jMqmoADl5sIv9gqOHUcRdFeMRprI8ZL2PiuonGHXlG/UEG5sPxd7RD2orfzJELj
         w/9G9h6qMhGoIOOCcy0MwCfQoI4EOmdkBhNwaYfTupzVThdeM4VtaYeBmLfNO6WUS1GJ
         4JANI+SugTJNK308ANLZE0mFMa5tZcLAVFh3WuPvbq4gDJolEEXsHN2AL0+ncEvybxaT
         ExMYW/I845CQu14vtDVfn2GdPLTuUa6wgVvXN8G3d2D4KdIrvN2tVk7wAg7xNYTOFb3B
         qwEQ==
Received: by 10.180.79.135 with SMTP id j7mr225965wix.19.1332873775055;
        Tue, 27 Mar 2012 11:42:55 -0700 (PDT)
Received: from khamul.example.com (196-210-183-224.dynamic.isadsl.co.za. [196.210.183.224])
        by mx.google.com with ESMTPS id j3sm2482714wiw.1.2012.03.27.11.42.51
        (version=SSLv3 cipher=OTHER);
        Tue, 27 Mar 2012 11:42:53 -0700 (PDT)
Date: Tue, 27 Mar 2012 20:41:45 +0200
From: Alan McKinnon <alan.mckinnon@gmail.com>
To: gentoo-user@lists.gentoo.org
Cc: che@chrekh.se
Subject: Re: [gentoo-user] Re: After /usr conflation: why not copy booting
 software to /sbin rather	than initramfs?
Message-ID: <20120327204145.4c38672c@khamul.example.com>
In-Reply-To: <86iphq0vza.fsf@jane.chrekh.se>
References: <20120327133728.GA3754@acm.acm>
	<01c301cd0c22$2fac1300$8f043900$@kutulu.org>
	<20120327142646.GB3754@acm.acm>
	<20120327154620.21440f87@digimed.co.uk>
	<86iphq0vza.fsf@jane.chrekh.se>
Organization: Internet Solutions
X-Mailer: Claws Mail 3.7.10 (GTK+ 2.24.10; x86_64-pc-linux-gnu)
Precedence: bulk
List-Post: <mailto:gentoo-user@lists.gentoo.org>
List-Help: <mailto:gentoo-user+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-user+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-user+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-user.gentoo.org>
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-Transfer-Encoding: 7bit
X-Archives-Salt: b2937b9b-9fa9-455f-8210-986304d4ed48
X-Archives-Hash: 1b842065c5fc3a609b5ae98432b44f1f

On Tue, 27 Mar 2012 19:55:37 +0200
che@chrekh.se wrote:

> Neil Bothwick <neil@digimed.co.uk> writes:
> 
> > On Tue, 27 Mar 2012 14:26:46 +0000, Alan Mackenzie wrote:
> >
> >> > As you move more and more software off of /usr into / you start
> >> > to realize that the idea of "tiny partition that contains just
> >> > what I need to boot and mount /usr" is becoming "not so tiny"
> >> > anymore. The distinction between what is "boot" software versus
> >> > "user" software gets less clear.  
> >> 
> >> Again, isn't this the same for an initramfs?
> >
> > No, because an initramfs only needs enough to mount / and /usr, then
> > everything else comes from the usual source. If you're not using and
> > fancy block devices, the initramfs only needs busybox and an init
> > script. Even adding LVM, RAID and encryption only requires three
> > more binaries - and those are all disposed of once switch_root is
> > run and the tmpfs released.
> 
> The question remains. If it's possible to do that from an initramfs,
> then shouldn't it be possible to put the same tools and binarias on /,
> and mount /usr early?

Of course it's possible, it's merely a gigantic list of cd commands.

The question is, is it advisable?

I offer you two choices:

a. Move a few commands into an initramfs, truly only the ones you
really do need, or
b. Move 7G of files onto / (i.e. everything) and lose any benefit you
(and everyone else with different ideas to you) may want by having a
separate /usr. Oh, and you get to deal with finding the hardcoded paths
and fixing the code yourself.

Those are your choices. Pick one.



-- 
Alan McKinnnon
alan.mckinnon@gmail.com