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 1STQOe-0000R1-RL for garchives@archives.gentoo.org; Sun, 13 May 2012 04:27:05 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4B7DFE0938; Sun, 13 May 2012 04:26:51 +0000 (UTC) Received: from mail-yx0-f181.google.com (mail-yx0-f181.google.com [209.85.213.181]) by pigeon.gentoo.org (Postfix) with ESMTP id 25197E08EB for ; Sun, 13 May 2012 04:25:20 +0000 (UTC) Received: by yenl3 with SMTP id l3so4036630yen.40 for ; Sat, 12 May 2012 21:25:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=BjiGx+Dvfv89uVUFknvMQO5YLTxtqWma1BItDmLmdM0=; b=go16Ih9aqRfU6Y1GMv5RwELEOdAJwTWEPDqjnBqxsBymBxgRH4F2JMExFg+BArPR/R a1G0lpb477I48c5JPr9fJqNgDk9cdDD4Fla79VGs+3KGjixLYRl8IMPLOdOFyvmvBi74 5T/rEUyyvjfUGba7R6AB6enE6xX7C+xNotvQ5ooD71tAbVv+fiNP5127TKuwXhRdJbJ3 Nper4uwhziMJeF9coVCdhv1WlcNBPt4OGWDlcHHg7V8BrOwMegOcIvCPrLNTap7mWqXP E2VMUKGUJio5JaBHitnAngU3MVSS57v0YLAUrXQakOKYW4skAslGLwdSeY7XWZn2jfRA tr1A== 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 Received: by 10.236.125.234 with SMTP id z70mr3492605yhh.18.1336883120405; Sat, 12 May 2012 21:25:20 -0700 (PDT) Received: by 10.100.4.12 with HTTP; Sat, 12 May 2012 21:25:20 -0700 (PDT) In-Reply-To: <20120513115420.47525366@gentoo-main.kwkh-home> References: <20120513024334.69bc9dd1@weird.wonkology.org> <20120513115420.47525366@gentoo-main.kwkh-home> Date: Sat, 12 May 2012 23:25:20 -0500 Message-ID: Subject: Re: [gentoo-user] fsck separate /usr From: =?UTF-8?B?Q2FuZWsgUGVsw6FleiBWYWxkw6lz?= To: gentoo-user@lists.gentoo.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Archives-Salt: cbdaf0fb-e2cf-44fd-a6e2-bcaa308b5d27 X-Archives-Hash: 57356c9fc1cc3ae7669da7f393d24f4b On Sat, May 12, 2012 at 10:54 PM, wrote: > On Sat, 12 May 2012 19:54:24 -0500 > Canek Pel=C3=A1ez Vald=C3=A9s wrote: > >> On Sat, May 12, 2012 at 7:43 PM, Alex Schuster >> wrote: >> > Hi there! >> > >> > I'm using the new udev with a separate /usr partition. >> >> How do you create your initramfs? The new udev (>=3D 182, I believe) >> requires the use of an initramfs if you have a separated /usr. >> >> > It was encrypted, >> > and it seems there is no solution yet for this. >> >> dracut has two modules, crypt and crypt-gpg, that maybe do what you >> are needing. >> >> > so I moved it over to an >> > unencrypted volume - no problem, /usr is one partition where >> > encryption does not make that much sense anyway. Works, but after >> > an unclean shutdown (reading files in /proc// was not a good >> > idea) /usr wants to be fsck'ed. But it is already mounted at that >> > stage. >> >> That's the reason you need an initramfs. > > No, that's the reason you want the filesystem's fsck to be included in > the initramfs. > >> > The boot process just continues, but I wonder what one should do to >> > make the fsck run. Except for using a live cd. >> >> With an initramfs. > > Using initramfs is necessary but itself not sufficient. > > One can create an initramfs (from scratch) that does nothing but > mount /usr (with only busybox and a few /dev nodes, plus whatever other > tools needed to find /usr, viz. lvm, cryptsetup and friends, assuming > the necessary drivers are built in the kernel and not as modules --- > see e.g. the old gentoo wiki at > http://www.gentoo-wiki.info/HOWTO_Custom_Initramfs_From_Scratch ). > > The initramfs needs to have the relevant fsck tools (plus dependencies) > if it was to perform fsck. Dracut (and I believe genkernel, but I don't use it, so I'm not sure) does all of that (and more, if so desired) for you. Regards. --=20 Canek Pel=C3=A1ez Vald=C3=A9s Posgrado en Ciencia e Ingenier=C3=ADa de la Computaci=C3=B3n Universidad Nacional Aut=C3=B3noma de M=C3=A9xico