1 |
On 2013-11-12 5:50 PM, Canek Peláez Valdés <caneko@×××××.com> wrote: |
2 |
> You*MUST* add the necessary modules/tools to mount root and/or /usr. |
3 |
> So if you have an XFS partition on a LVM volume on top of an mdraid, |
4 |
> and the partition is encrypted, then you need the kernel modules for |
5 |
> xfs, lvm, mdraid and crypt, and the corresponding userspace tools, |
6 |
> including fsck.xfs. |
7 |
|
8 |
Ok, re-reading these messages, this explanation is probably the most |
9 |
significant - thanks Canek - but I still have a few questions... |
10 |
|
11 |
Maybe part of my confusion stems from use of the word 'modules' above? |
12 |
Remember, the system I am talking about has always had kernel module |
13 |
support completely disabled (everything is built into the kernel). |
14 |
|
15 |
So, my /usr is reiserfs (built into the kernel - and please no |
16 |
filesystem flame-war comments, it is what it is) on LVM (built into the |
17 |
kernel) on hardware RAID (driver built into the kernel), with no |
18 |
encryption involved. |
19 |
|
20 |
So, am I correct that I don't need ANY 'modules' (never have, and don't |
21 |
want them), leaving only the userspace tools for lvm and reiserfsck? |
22 |
|
23 |
If so then the only other question is, how to build an initramfs with |
24 |
just these... |
25 |
|
26 |
> I strongly recommend dracut; the modules listed in DRACUT_MODULES are |
27 |
> usually self explanatory, and it Just Works™. |
28 |
|
29 |
Ok, well, emerge -pvuDN dracut gives: |
30 |
|
31 |
> [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 |
32 |
|
33 |
First question: I don't see reference to reiserfs there anywhere, so how |
34 |
do I get reiserfsck (and is that all I need?) support into the initrams? |
35 |
|
36 |
Second question: I guess I'd need to enable the device-mapper USE flag |
37 |
for dracut, but, since I do not use ANY kernel modules, can I ignore all |
38 |
of the 'DRACUT_MODULES'? Or do 'DRACUT_MODULES' have nothing to do with |
39 |
kernel modules? |
40 |
|
41 |
Thanks to all for your patience... |