Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 246629 - =sys-kernel/genkernel-3.4.10-r1 installs lvm from the system, but not the symlinks
Summary: =sys-kernel/genkernel-3.4.10-r1 installs lvm from the system, but not the sym...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: genkernel (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Genkernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-13 17:08 UTC by Robert Buchholz (RETIRED)
Modified: 2008-11-14 13:16 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
generated initramfs (initramfs-genkernel-x86-2.6.27-gentoo-r2,996.26 KB, application/octet-stream)
2008-11-13 17:09 UTC, Robert Buchholz (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Buchholz (RETIRED) gentoo-dev 2008-11-13 17:08:16 UTC
genkernel creates an initramfs that contains the lvm binary, but not the symlinks pointing to it (e.g. pvscan).

I installed the following two ebuilds:
sys-kernel/genkernel-3.4.10-r1  USE="-bash-completion (-ibm) (-selinux)"
sys-fs/lvm2-2.02.36  USE="lvm1 readline static -clvm -cman -gulm (-selinux)"

LVM2 is installed completely with symlinks:
stone / # ls -laR /sbin/lvm /sbin/pvscan
-r-xr-xr-x 1 root root 1041880 Nov 12 00:09 /sbin/lvm
lrwxrwxrwx 1 root root       3 Nov 12 00:09 /sbin/pvscan -> lvm

Then I create an initramfs with:
stone / # genkernel initrd
* Gentoo Linux Genkernel; Version 3.4.10
* Running with options: initrd

* Clearing cache dir contents from /var/cache/genkernel
*        >> removing busybox-1.7.4-x86.tar.bz2
*        >> removing src
rm: cannot remove `/var/cache/genkernel/src': Is a directory
* Linux Kernel 2.6.27-gentoo-r2 for x86...
* busybox: >> Applying patches...
* busybox: >> Configuring...
* busybox: >> Compiling...
* busybox: >> Copying to cache...
* initramfs: >> Initializing...
*         >> Appending base_layout cpio data...
*         >> Appending auxilary cpio data...
*         >> Appending busybox cpio data...
*         >> Appending lvm cpio data...
*               LVM: Adding support (using local static binaries)...
*         >> Appending mdadm cpio data...
*         >> Appending modules cpio data...

* WARNING... WARNING... WARNING...
* Additional kernel cmdline arguments that *may* be required to boot properly...
* add "dolvm" for lvm support

* Do NOT report kernel bugs as genkernel bugs unless your bug
* is about the default genkernel configuration...
*
* Make sure you have the latest genkernel before reporting bugs.


genkernel.conf:
OLDCONFIG="yes"
MENUCONFIG="no"
CLEAN="no"
MRPROPER="no"
MOUNTBOOT="yes"
SYMLINK="yes"
SAVE_CONFIG="yes"
USECOLOR="yes"
CLEAR_CACHE_DIR="yes"
LVM="yes"
BUSYBOX="yes"
MDADM="yes"
Comment 1 Robert Buchholz (RETIRED) gentoo-dev 2008-11-13 17:09:16 UTC
Created attachment 171650 [details]
generated initramfs
Comment 2 Robert Buchholz (RETIRED) gentoo-dev 2008-11-14 13:16:20 UTC
Looking into the code, I noticed that the symbolic links are created at boot-time, but only if the init script is called as /init, whereas my grub entry specified rdinit=/linuxrc

It seems this is not supported, but I missed this in the documentation.