1 |
On Tue, Mar 17, 2015 at 5:07 PM, Dale <rdalek1967@×××××.com> wrote: |
2 |
> Alan McKinnon wrote: |
3 |
>> You are reading it wrong. That means: |
4 |
>> util-linux needs to be built with USE="static-libs" |
5 |
>> because |
6 |
>> lvm2 is already built with USE="static" |
7 |
>> |
8 |
>> None of which explains why you originally built lvm2 that way. |
9 |
> |
10 |
> It was because emerge told me it needed it for some reason. It is very |
11 |
> rare that I just put something in package.use on my own. |
12 |
|
13 |
This was probably required by some script for mounting /usr or by some |
14 |
initramfs you were using before you switched to dracut. |
15 |
|
16 |
Dracut is pretty advanced by initramfs standards. It handles dynamic |
17 |
linking just fine (bundling libraries/etc as needed). Simpler |
18 |
initramfs tools and such don't, and to make things easier there is a |
19 |
tendency to build anything needed to mount root/usr static so that it |
20 |
is certain to run correctly. |
21 |
|
22 |
You can look inside an initramfs by doing the following: |
23 |
mkdir /tmp/ext |
24 |
cd /tmp/ext |
25 |
zcat /boot/initramfs-3.18.9-gentoo.img | cpio -i |
26 |
find usr |
27 |
find lib64 |
28 |
... |
29 |
|
30 |
There is quite a bit of dynamic linking going on in a typical dracut |
31 |
initramfs, and quite a bit of stuff installed in /usr it utilizes |
32 |
either to mount root/usr or just for operator convenience (it is nice |
33 |
to be able to use less in an emergency shell, and so on). It is also |
34 |
really easy to tell dracut to add stuff to an initramfs. I tweaked my |
35 |
btrfs module to add btrfstune to the initramfs so that I could easily |
36 |
enable skinny metadata without a boot CD. In some sense, you could |
37 |
think of an initramfs as the rescue CD you always have ready (though I |
38 |
also keep systemrescuecd handy on a USB stick). |
39 |
|
40 |
-- |
41 |
Rich |