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 1Rhi0F-0007q9-JE for garchives@archives.gentoo.org; Mon, 02 Jan 2012 13:32:39 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2FE6721C194; Mon, 2 Jan 2012 13:32:21 +0000 (UTC) Received: from mail-tul01m020-f181.google.com (mail-tul01m020-f181.google.com [209.85.214.181]) by pigeon.gentoo.org (Postfix) with ESMTP id ED8C121C15C for ; Mon, 2 Jan 2012 13:31:40 +0000 (UTC) Received: by obbup6 with SMTP id up6so13687098obb.40 for ; Mon, 02 Jan 2012 05:31:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=xPkHZMevX+G/Aj6GPE7x7et0xTssRf+ihyy+iiYd3q4=; b=r41+6f/eEeei1Sf87RTydxT0WinL6V2W91qQg9i0Bt/0hb1nkS/pd6zmKsop32pcl+ 8lXR1r9vjUtWojGr/7DJYynSYjWLMSCD4c+g85Kdz850P32wPkJvBDqguE2LiZ0Gs9Bh qKa2Uli+aPnWyETJgqjXpruHbI2YnriaJGw0A= Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 Received: by 10.182.74.66 with SMTP id r2mr41783160obv.67.1325511100377; Mon, 02 Jan 2012 05:31:40 -0800 (PST) Received: by 10.182.19.74 with HTTP; Mon, 2 Jan 2012 05:31:40 -0800 (PST) In-Reply-To: References: <20120101015947.GA9914@linux1> <20120101085326.GA1928@gentoo.org> <1325449307.12935.22.camel@TesterTop4> <20120102114737.GA14841@gentoo.org> Date: Tue, 3 Jan 2012 02:31:40 +1300 Message-ID: Subject: Re: [gentoo-dev] rfc: locations of binaries and separate /usr From: Kent Fredric To: gentoo-dev@lists.gentoo.org Content-Type: multipart/alternative; boundary=f46d044470d148aa8204b58b9a4e X-Archives-Salt: f3cfda9d-5891-45a5-b00b-0ac11659629b X-Archives-Hash: 44a4aaba9a7db4dc16e4273b5c3945c5 --f46d044470d148aa8204b58b9a4e Content-Type: text/plain; charset=UTF-8 On 3 January 2012 01:58, Rich Freeman wrote: > On Mon, Jan 2, 2012 at 6:47 AM, Sven Vermeulen wrote: > > And how does dracut know which files it needs to mount my /usr? > > I assume based on the selection of modules that you enabled when > building/running it. > > I believe dracut builds static binaries, so it mainly needs updating > when you build a new kernel. > > It also takes a list of filesystem types to add support for mounting , and copies the mount.* binaries across to the tmpfs root image, along with any dependencies. May help to understand if you see the listing of the cpio'd archive: https://gist.github.com/1550652 Its sort of magical really. You'll note its only got a smattering of console fonts, particularly "usr/share/consolefonts/ter-112n.psf", which I'm not even sure how it works out. The only place I have that configured is /etc/conf.d/consolefont and it somehow works it out. You may also notice a non-standard 'v86d' in sbin/ , for uvesafb support. Its added by a simple dracut module I whipped up in 10 minutes, and its far simpler to do with dracut than it ever was with genkernel. /usr/share/dracut/modules.d/95v86d/module-setup.sh #!/bin/bash # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- # ex: ts=8 sw=4 sts=4 et filetype=sh check() { return 0 } depends() { return 0 } install() { local _d dracut_install "/sbin/v86d" } Been using dracut for 2+ months now and love it. Sure, I've had to re-implement the bits of genkernel I actually used , and I still lack an "add it to grub.conf for me" option, but its still overall a net improvement in my eyes. ( I only ever really used genkernel to automate compile and initrd creation, all the things that would touch the .config file I disabled ) Here is basically what I run after I have my .config ready: https://gist.github.com/1550685 -- Kent perl -e "print substr( \"edrgmaM SPA NOcomil.ic\\@tfrken\", \$_ * 3, 3 ) for ( 9,8,0,7,1,6,5,4,3,2 );" --f46d044470d148aa8204b58b9a4e Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 3 January 2012 01:58, Rich Freeman <rich0@gentoo.org> wrote:
On Mon, Jan 2, 2012 at 6:47 AM, Sven Vermeulen <swift@gentoo.org> wrote:
> And how does dracut know which files it needs to mount my /usr?

I assume based on the selection of modules that you enabled when
building/running it.

I believe dracut builds static binaries, so it mainly needs updating
when you build a new kernel.


It also takes a list of filesystem types to add s= upport for mounting , and copies the mount.* binaries across to the tmpfs r= oot image, along with any dependencies.

May help to understand if yo= u see the listing of the cpio'd archive: https://gist.github.com/1550652

Its sort of magical really.

You'll note its only got a smat= tering of console fonts, particularly "usr/share/consolefonts/ter-112n= .psf", which I'm not even sure how it works out.

The only p= lace I have that configured is /etc/conf.d/consolefont and it somehow works= it out.

You may also notice a non-standard 'v86d' in sbin/=C2=A0 , for = uvesafb support.

Its added by a simple dracut module I whipped up in= 10 minutes, and its far simpler to do with dracut=C2=A0 than it ever was w= ith genkernel.

/usr/share/dracut/modules.d/95v86d/module-setup.sh

#!/bin/bash# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-<= br># ex: ts=3D8 sw=3D4 sts=3D4 et filetype=3Dsh

check() {
=C2=A0= =C2=A0=C2=A0 return 0
}

depends() {
=C2=A0=C2=A0=C2=A0 return 0
}

install() {=
=C2=A0=C2=A0=C2=A0 local _d

=C2=A0=C2=A0=C2=A0 dracut_install &q= uot;/sbin/v86d"
}


Been using dracut for 2+ months now an= d love it.

Sure, I've had to re-implement the bits of genkernel= I actually used , and I still lack an "add it to grub.conf for me&quo= t; option, but its still overall a net improvement in my eyes. ( I only eve= r really used genkernel to automate compile and initrd creation, all the th= ings that would touch the .config file I disabled )

Here is basically what I run after I have my .config ready:

https://gist.github.com/1550685


--
Kent

perl -e=C2=A0 "print subs= tr( \"edrgmaM=C2=A0 SPA NOcomil.ic\\@tfrken\", \$_ * 3, 3 ) for (= 9,8,0,7,1,6,5,4,3,2 );"

--f46d044470d148aa8204b58b9a4e--