From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-dev+bounces-75223-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	by finch.gentoo.org (Postfix) with ESMTP id C2D7059CAF
	for <garchives@archives.gentoo.org>; Sun, 10 Apr 2016 01:15:01 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 90E0321C13E;
	Sun, 10 Apr 2016 01:14:55 +0000 (UTC)
Received: from mail-io0-f170.google.com (mail-io0-f170.google.com [209.85.223.170])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 9805D21C038
	for <gentoo-dev@lists.gentoo.org>; Sun, 10 Apr 2016 01:14:54 +0000 (UTC)
Received: by mail-io0-f170.google.com with SMTP id u185so3629528iod.3
        for <gentoo-dev@lists.gentoo.org>; Sat, 09 Apr 2016 18:14:54 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=mime-version:sender:in-reply-to:references:date:message-id:subject
         :from:to;
        bh=FTEXHQrxblw+SA0Ge6E16NadrCnsRroxM/XUzChw1DY=;
        b=B2Wi2SkZ34/bHB4Rz8jrPv2k5tOD2JVzGsjPmJ4RfkhHgTSn3ZnTWdPtzYDgr7APa2
         O23ZVmqPjq2vvctBZB8QjPDPF+2toJMdeUOJyLS1kR5a/laqzz+sd540hJZlt7SM4P+N
         nfU4KIXRAtT0Y75EgaEQ/MRCruSOkIcUdcz3iFHNXTlbxpeLf3bLz36PnJq96XP7I70P
         LitgK2RlK46W+YHfPWwhS85CjTmW4OJZS3PcYe+rvWjVSYlcGY4xAoHMB43BqD28LN5k
         xr/8oJYqTHLAtMt49/xp8qwH8cFjeyNX8QCDPCQfjPA1+rDMah9j5Tb5c6fANYSjuZbg
         majw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:mime-version:sender:in-reply-to:references:date
         :message-id:subject:from:to;
        bh=FTEXHQrxblw+SA0Ge6E16NadrCnsRroxM/XUzChw1DY=;
        b=ln4oBOG4WqtUiuFvxBiKHuN0oltgNFIq9tI4If0k2uvNJKiKpjMYQ4GaqTm5eo1ClS
         paTkHBrNAeH2Yt145g7s3JccBXin4uHC+aPWnDY5fZcrMOrSKi22ZE2mEq+SKtRbiguT
         KxAe0G8bjftUsb+GCnFNnEQpix/5VUhcEnBx9dG3C1WhtZQzkz76keSSo2ahSPJhKFyX
         hetbALXD81DzL8XAKUQBZ5/duFoYAqetgx7dZ3cHy/v3fCWEn1COGVTehs4qHB+EiBqS
         bJG3V87uRk3RIcjT4RpzogrEJFRJO72vO/0tsfdVqMwog4ntut5ep238A7Zjks4X2N9X
         g0QQ==
X-Gm-Message-State: AD7BkJLHx8USTZWdrEiBEzvWshU8OrrONHHChjwqT24MsBZ/0u7SDLAAosDAT2lwbN8gC71wn3sX7aYySjr8Gg==
Precedence: bulk
List-Post: <mailto:gentoo-dev@lists.gentoo.org>
List-Help: <mailto:gentoo-dev+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-dev+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-dev+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-dev.gentoo.org>
X-BeenThere: gentoo-dev@lists.gentoo.org
Reply-to: gentoo-dev@lists.gentoo.org
MIME-Version: 1.0
X-Received: by 10.107.186.137 with SMTP id k131mr16660091iof.136.1460250893693;
 Sat, 09 Apr 2016 18:14:53 -0700 (PDT)
Sender: freemanrich@gmail.com
Received: by 10.64.52.72 with HTTP; Sat, 9 Apr 2016 18:14:53 -0700 (PDT)
In-Reply-To: <5709A062.4010800@iee.org>
References: <57087E0D.3090502@gmail.com>
	<20160409053230.GA16529@waltdnes.org>
	<CAGfcS_miZ1mx7JuyEYpXpM1Ttf-BGYes4=a-F0YnB6rrx823mA@mail.gmail.com>
	<20160409160938.GA17530@waltdnes.org>
	<CADPrc80pDAZgMFbgTR6TXJTRSkGU8ejPpHSmWA1M8L3Wh6tC1Q@mail.gmail.com>
	<20160409194943.GA1271@ca.inter.net>
	<CADPrc81TGrw9Sgk-X4gv9GEKiBCGoef+nrZLHvQP0An7YQrm3g@mail.gmail.com>
	<20160409225049.GA1276@ca.inter.net>
	<570995fe.44c7b60a.fb125.6a14@mx.google.com>
	<5709A062.4010800@iee.org>
Date: Sat, 9 Apr 2016 21:14:53 -0400
X-Google-Sender-Auth: NAON7kg4OfqkdY_vdTypk5q1mdc
Message-ID: <CAGfcS_k4evRbWC7cQLyDKv8pUDJf73XoXPC7tXrv0qb8t=UhrQ@mail.gmail.com>
Subject: Re: [gentoo-dev] usr merge
From: Rich Freeman <rich0@gentoo.org>
To: gentoo-dev <gentoo-dev@lists.gentoo.org>
Content-Type: text/plain; charset=UTF-8
X-Archives-Salt: 07f0265f-839e-4dad-a50f-4a5a010b5f1b
X-Archives-Hash: 2f529cf776a4a5832f99f943405c94be

On Sat, Apr 9, 2016 at 8:37 PM, M. J. Everitt <m.j.everitt@iee.org> wrote:
> I may have contributed to the latter point, but addressing the former
> specifically, I, like others, have /usr mounted on an NFS server for
> thin clients (not in the full-true sense, but with a very minimal /
> currently residing on USB).
> What you propose moving binaries from / to /usr would render them
> completely unbootable without early mounting via initramfs.

I believe dracut will auto-mount /usr.  As long as your fstab is
accurate (double-check - sometimes people don't have correct settings
for root since without something like dracut the root filesystem isn't
mounted according to fstab), I suspect it will just NFS-mount your
/usr before pivoting.  If not you can probably use the fstab-user
module to force it to mount (you stick a second dracut-specific fstab
file in /etc and it will mount everything it finds in there whether it
thinks it needs it or not).  I'd start with the auto-magic detection
since it tends to work.

Dracut needs a root= setting on the kernel command line to get it
started, but once it finds that it tends to figure out how to get it
mounted read-only, then it looks inside for an /etc/fstab to figure
out the rest.  When you build the initramfs dracut will also copy
files like mdadm.conf into the initramfs automatically.  You can also
configure it to load extra stuff in there (my initramfs doubles as a
rescue image, so I stick a few convenience things in there that
strictly aren't needed, like btrfstune and a full bash instead of just
dash).

Part of me also wonders if Gentoo would be better off having emerge
gentoo-sources actually BUILD the kernel and initramfs and not just
dump a bunch of sources on the disk.  Most distros consider an
initramfs a no-brainer because it just ships already setup, and an
initramfs is a lot more forgiving when you add a new drive and your
firmware/kernel decides to re-number everything.  Just label your
filesystems or store UUIDs and the initramfs will figure out what
happened.

-- 
Rich