Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 307859 - genkernel: root on lvm gen-initramfs.sh fail
Summary: genkernel: root on lvm gen-initramfs.sh fail
Status: RESOLVED DUPLICATE of bug 307855
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: genkernel (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Genkernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-05 07:37 UTC by Pavel V Samsonov
Modified: 2010-03-05 12:17 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pavel V Samsonov 2010-03-05 07:37:33 UTC
I have root fs on LVM. I do:
genkernel --lvm all
and result:
* 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 modules cpio data..

ls /boot
initramfs-genkernel-x86-2.6.31-gentoo-r10-psn
kernel-genkernel-x86-2.6.31-gentoo-r10-psn

I verify (extract initramfs):
cp /boot/initramfs-genkernel-x86-2.6.31-gentoo-r10-psn /root/initramfs-genkernel-x86-2.6.31-gentoo-r10-psn.gz
mkdir /root/initramfs
cd /root/initramfs
gunzip ../initramfs-genkernel-x86-2.6.31-gentoo-r10-psn.gz
cpio -i < ../initramfs-genkernel-x86-2.6.31-gentoo-r10-psn
cd bin
ls -l
-rwxr-xr-x 9 root root 1093640 Мар  5 10:29 [
-rwxr-xr-x 9 root root 1093640 Мар  5 10:29 ash
-rwxr-xr-x 9 root root 1093640 Мар  5 10:29 busybox
-rwxr-xr-x 9 root root 1093640 Мар  5 10:29 cat
-rwxr-xr-x 9 root root 1093640 Мар  5 10:29 cut
-rwxr-xr-x 9 root root 1093640 Мар  5 10:29 echo
-r-xr-xr-x 1 root root 1271836 Мар  5 10:29 lvm
-rwxr-xr-x 9 root root 1093640 Мар  5 10:29 mount
-rwxr-xr-x 9 root root 1093640 Мар  5 10:29 sh
-rwxr-xr-x 9 root root 1093640 Мар  5 10:29 uname


Static /bin/lvm present, but symlinks vgchange->lvm and vgscan->lvm not present. To do this, I patch /usr/share/genkernel/gen_initramfs.sh (lvm section).




Reproducible: Always
Comment 1 Pavel V Samsonov 2010-03-05 07:38:39 UTC
=================================================================
                        Package Settings
=================================================================

sys-kernel/genkernel-3.4.10.906 was built with the following:
USE="-bash-completion (-ibm) (-selinux)"
Comment 2 Alex Legler (RETIRED) archtester gentoo-dev Security 2010-03-05 12:17:13 UTC
Please only file your bugs once.

*** This bug has been marked as a duplicate of bug 307855 ***