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-136101-garchives=archives.gentoo.org@lists.gentoo.org>)
	id 1S6hjH-0001Kc-0x
	for garchives@archives.gentoo.org; Sun, 11 Mar 2012 12:18:27 +0000
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id EE180E07F6;
	Sun, 11 Mar 2012 12:18:12 +0000 (UTC)
Received: from mail-vx0-f181.google.com (mail-vx0-f181.google.com [209.85.220.181])
	by pigeon.gentoo.org (Postfix) with ESMTP id C61BFE07D6
	for <gentoo-user@lists.gentoo.org>; Sun, 11 Mar 2012 12:17:14 +0000 (UTC)
Received: by vcge1 with SMTP id e1so3708482vcg.40
        for <gentoo-user@lists.gentoo.org>; Sun, 11 Mar 2012 05:17:14 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=mime-version:in-reply-to:references:from:date:message-id:subject:to
         :content-type:content-transfer-encoding;
        bh=Ts7VUSKeA48Y9NN6xPFynz52Ezbzl7EdGdPlfYtPY8I=;
        b=MxiXjoe2IPYbp1k0rmhzq70Z59/X3UCuHeLRIXlkfzE1+u+mjznwJ4VJTC8eE+/fgG
         nAmeOvURefB7HphO2ZlyfN7T41cDqieYIPK8wrH9sJtK1brA7RjV5l08aBrG+fKFuR37
         LdIFqlymxDOQ3hv0WTMk1g3tzHrhRttIjPBf3iOg2IlP3dzEuYpE/bL9BQ8sg/0HxZp2
         bhf8cEJHPueULg99qC29ZZqNn31vMYWMsV8x60RZbPDye5gKRazZ0E5ca1BMov6W8I3T
         wupKIOHSivgvY4Ibb6j4NT4EvdY+FF7kW/S8reKLnxbYe+fg8+ioreD0cD15737uFaIp
         GYVw==
Received: by 10.52.25.70 with SMTP id a6mr11804968vdg.66.1331468234239; Sun,
 11 Mar 2012 05:17:14 -0700 (PDT)
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
Received: by 10.52.36.42 with HTTP; Sun, 11 Mar 2012 05:16:54 -0700 (PDT)
In-Reply-To: <4F5C724C.1010708@coolmail.se>
References: <4F5AC0F6.6000804@gmail.com> <4F5B33CA.2020705@coolmail.se>
 <20120310153540.5194cd7c@digimed.co.uk> <4F5BBE7A.8040802@coolmail.se>
 <CADPrc83RO5rE0j8cZtkFK32TzQc4Fg2=oHMGj+5XbZ-fec-_Wg@mail.gmail.com> <4F5C724C.1010708@coolmail.se>
From: =?UTF-8?Q?Jorge_Mart=C3=ADnez_L=C3=B3pez?= <jorgeml@gmail.com>
Date: Sun, 11 Mar 2012 13:16:54 +0100
Message-ID: <CAMgZwF3aHqhqgJZKV6eBWEfLP83mPKS4nPAuLQGJ-mERyAMn=Q@mail.gmail.com>
Subject: Re: [gentoo-user] LVM, /usr and really really bad thoughts.
To: gentoo-user@lists.gentoo.org
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-Archives-Salt: 04bb4161-687b-46e3-b47f-d2c6ecc00383
X-Archives-Hash: 736e2f2e6523ea7107514d28ad9bcd12

Hi!

I had some struggle with a separate /usr on top of LVM and the dracut
thing. I noticed that udev was complaining at boot that it could not
find some scripts.

The usmount dracut module did not work for me because it could not
find /usr. So what I did was to include the fstab-sys smodule in
dracut:

/etc/dracut.conf

# Dracut modules to omit
omit_dracutmodules+=3D"usrmount"

# Dracut modules to add to the default
add_dracutmodules+=3D"fstab-sys"

Then I created /etc/fstab.sys with just the /usr partition

/dev/disk/by-uuid/90d82b02-e6c2-4011-940e-783d12b0c4fe		/usr		ext4		noatime=
		1 2

Dracut could only find the partition by using the uuid (use blkid to
find it easily).

The next step was to remove /usr from /etc/fstab to prevent /usr from
being mounted twice (the boot process does not like it).

The last obstacle is /etc/mtab. By the time /usr is mounted I believe
/ is mounted as read only, so mount cannot update /etc/mtab. The
trivial solutions is to delete /etc/mtab and make it a symlink to
/proc/mounts . In that case it is always up to date.

Of course, YMMV. Be careful when changing things that can prevent your
machine from booting and make sure you have a live CD at hand.

Cheers,
--=20
Jorge Mart=C3=ADnez L=C3=B3pez <jorgeml@gmail.com> http://www.jorgeml.net
=C2=A0 =C2=A0 =C2=A0 Google Talk / XMPP: jorgeml@gmail.com