Gentoo Archives: gentoo-user

From: thegeezer <thegeezer@×××××××××.net>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] My first initramfs
Date: Sun, 17 Nov 2013 15:34:25
Message-Id: 5288E1F4.1010109@thegeezer.net
In Reply to: Re: [gentoo-user] My first initramfs by Tanstaafl
1 On 11/17/2013 02:34 PM, Tanstaafl wrote:
2 > On 2013-11-17 8:39 AM, thegeezer <thegeezer@×××××××××.net> wrote:
3 >> you only need lvm if root/usr is on lvm.
4 >
5 > root is on a normal partition, /usr is on a separate lvm partition.
6 >
7 you will need the intramfs.mount and lvm
8 >> do you have kernel modules that are not compiled into the kernel in
9 >> order to mount root ?
10 >
11 > Ummm... I think I was *extremely* clear on this point?
12 sorry missed in the thread
13 >
14 > Directly from the quoted text in my message that you responded to:
15 >
16 > "but on my server (that has the separate /usr), modules are disabled
17 > and so I have every driver and filesystem built into the kernel."
18 >
19 > So, again, no modules, zero, nada, everything is compiled into the
20 > kernel.
21 >
22 ya no need for modules in intramfs
23 > So, I'm not even certain that I need lvm support (since it is built
24 > into the kernel)?
25 >
26 you do in order to premount usr
27 > And then, how to make sure I have reiserfsck (anything else reiserfs
28 > related?) support?
29 >
30 >
31 reiser support would appear beacuse you have it compiled in the kernel
32 any additional tools you would need to add into genkernel.
33
34 for reiserfsck, i would suggest looking into your busybox config. i
35 know there is an option you can pass to genkernel --busybox-config
36 you can look at /usr/share/genkernel/defaults/busy-config but the exact
37 options i don't know.
38 I did google it though because i hate not knowing.
39 here a suggestion is to use genkernel --initramfs-overlay=<dir> to add
40 <dir> into the initramfs
41 http://forums.gentoo.org/viewtopic-t-928398-start-0.html
42 so you could mkdir -p /srv/bin/genkernelextras/tools, put all the tools
43 you want to use in that folder and pass
44 --initramfs-overlay=/srv/bin/genkernelextras
45
46 but the initramfs is supposed to be the minimal for getting the system
47 booted,
48 genkernel is a tool to help get this done.
49 it's not really for rescue. for rescue i'd suggest a seperate boot,
50 perhaps if using grub2 boot an iso.
51
52 however, a quick google search away and it looks like dracut has a much
53 more modular approach. i have never used dracut maybe someone else can
54 chip in with it
55 http://wiki.gentoo.org/wiki/Dracut#Other_Filesystems
56
57 you may also consider creating your own initramfs, which gives you the
58 granular control you perhaps need.
59 http://gentoo-en.vfose.ru/wiki/Initramfs
60
61 my own 2c would be to suggest to create an lvm using not reiser that you
62 sync your existing root and usr into. but this is way offtopic
63
64 finally a quick google of some of the issues you raise found me this guy
65 doing something almost identical to you with the suggestion that busybox
66 will be able to support reiser out of the box
67 https://forums.gentoo.org/viewtopic-t-912716-start-0.html