public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Tanstaafl <tanstaafl@libertytrek.org>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] My first initramfs
Date: Sun, 17 Nov 2013 07:57:09 -0500	[thread overview]
Message-ID: <5288BD25.3040605@libertytrek.org> (raw)
In-Reply-To: <CADPrc804DVwhjn04ZPhsXf=Nr2DpqVVO1m9ALQ2nycHWnPrHFg@mail.gmail.com>

On 2013-11-12 5:50 PM, Canek Peláez Valdés <caneko@gmail.com> wrote:
> You*MUST*  add the necessary modules/tools to mount root and/or /usr.
> So if you have an XFS partition on a LVM volume on top of an mdraid,
> and the partition is encrypted, then you need the kernel modules for
> xfs, lvm, mdraid and crypt, and the corresponding userspace tools,
> including fsck.xfs.

Ok, re-reading these messages, this explanation is probably the most 
significant - thanks Canek - but I still have a few questions...

Maybe part of my confusion stems from use of the word 'modules' above? 
Remember, the system I am talking about has always had kernel module 
support completely disabled (everything is built into the kernel).

So, my /usr is reiserfs (built into the kernel - and please no 
filesystem flame-war comments, it is what it is) on LVM (built into the 
kernel) on hardware RAID (driver built into the kernel), with no 
encryption involved.

So, am I correct that I don't need ANY 'modules' (never have, and don't 
want them), leaving only the userspace tools for lvm and reiserfsck?

If so then the only other question is, how to build an initramfs with 
just these...

> I strongly recommend dracut; the modules listed in DRACUT_MODULES are
> usually self explanatory, and it Just Works™.

Ok, well, emerge -pvuDN dracut gives:

> [ebuild  N    ~] sys-kernel/dracut-034-r1  USE="-debug -device-mapper -net (-selinux)" DRACUT_MODULES="-biosdevname -bootchart -btrfs -caps -cifs -crypt -crypt-gpg -crypt-loop -dash -dmraid -dmsquash-live -gensplash -iscsi -livenet -lvm -mdraid -multipath -nbd -nfs -plymouth -ssh-client -syslog -systemd" 272 kB

First question: I don't see reference to reiserfs there anywhere, so how 
do I get reiserfsck (and is that all I need?) support into the initrams?

Second question: I guess I'd need to enable the device-mapper USE flag 
for dracut, but, since I do not use ANY kernel modules, can I ignore all 
of the 'DRACUT_MODULES'? Or do 'DRACUT_MODULES' have nothing to do with 
kernel modules?

Thanks to all for your patience...


  parent reply	other threads:[~2013-11-17 12:57 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-12 21:49 [gentoo-user] My first initramfs Tanstaafl
2013-11-12 21:55 ` Tanstaafl
2013-11-12 22:50   ` Canek Peláez Valdés
2013-11-13  8:49     ` covici
2013-11-17 12:57     ` Tanstaafl [this message]
2013-11-17 13:33       ` Tanstaafl
2013-11-17 16:53       ` Canek Peláez Valdés
2013-11-17 12:15   ` Tanstaafl
2013-11-17 13:39     ` thegeezer
2013-11-17 14:34       ` Tanstaafl
2013-11-17 15:34         ` thegeezer
2013-11-12 22:54 ` Neil Bothwick

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5288BD25.3040605@libertytrek.org \
    --to=tanstaafl@libertytrek.org \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox