From: thegeezer <thegeezer@thegeezer.net>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] My first initramfs
Date: Sun, 17 Nov 2013 15:34:12 +0000 [thread overview]
Message-ID: <5288E1F4.1010109@thegeezer.net> (raw)
In-Reply-To: <5288D3E1.6020704@libertytrek.org>
On 11/17/2013 02:34 PM, Tanstaafl wrote:
> On 2013-11-17 8:39 AM, thegeezer <thegeezer@thegeezer.net> wrote:
>> you only need lvm if root/usr is on lvm.
>
> root is on a normal partition, /usr is on a separate lvm partition.
>
you will need the intramfs.mount and lvm
>> do you have kernel modules that are not compiled into the kernel in
>> order to mount root ?
>
> Ummm... I think I was *extremely* clear on this point?
sorry missed in the thread
>
> Directly from the quoted text in my message that you responded to:
>
> "but on my server (that has the separate /usr), modules are disabled
> and so I have every driver and filesystem built into the kernel."
>
> So, again, no modules, zero, nada, everything is compiled into the
> kernel.
>
ya no need for modules in intramfs
> So, I'm not even certain that I need lvm support (since it is built
> into the kernel)?
>
you do in order to premount usr
> And then, how to make sure I have reiserfsck (anything else reiserfs
> related?) support?
>
>
reiser support would appear beacuse you have it compiled in the kernel
any additional tools you would need to add into genkernel.
for reiserfsck, i would suggest looking into your busybox config. i
know there is an option you can pass to genkernel --busybox-config
you can look at /usr/share/genkernel/defaults/busy-config but the exact
options i don't know.
I did google it though because i hate not knowing.
here a suggestion is to use genkernel --initramfs-overlay=<dir> to add
<dir> into the initramfs
http://forums.gentoo.org/viewtopic-t-928398-start-0.html
so you could mkdir -p /srv/bin/genkernelextras/tools, put all the tools
you want to use in that folder and pass
--initramfs-overlay=/srv/bin/genkernelextras
but the initramfs is supposed to be the minimal for getting the system
booted,
genkernel is a tool to help get this done.
it's not really for rescue. for rescue i'd suggest a seperate boot,
perhaps if using grub2 boot an iso.
however, a quick google search away and it looks like dracut has a much
more modular approach. i have never used dracut maybe someone else can
chip in with it
http://wiki.gentoo.org/wiki/Dracut#Other_Filesystems
you may also consider creating your own initramfs, which gives you the
granular control you perhaps need.
http://gentoo-en.vfose.ru/wiki/Initramfs
my own 2c would be to suggest to create an lvm using not reiser that you
sync your existing root and usr into. but this is way offtopic
finally a quick google of some of the issues you raise found me this guy
doing something almost identical to you with the suggestion that busybox
will be able to support reiser out of the box
https://forums.gentoo.org/viewtopic-t-912716-start-0.html
next prev parent reply other threads:[~2013-11-17 15:34 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
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 [this message]
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=5288E1F4.1010109@thegeezer.net \
--to=thegeezer@thegeezer.net \
--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