Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 98886 - Genkernel with --evms2 set doesn't boot with evms activated
Summary: Genkernel with --evms2 set doesn't boot with evms activated
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: genkernel (show other bugs)
Hardware: All Linux
: High critical (vote)
Assignee: Gentoo Genkernel Maintainers
URL:
Whiteboard:
Keywords: Inclusion
Depends on:
Blocks:
 
Reported: 2005-07-13 08:27 UTC by Aaron Gipson
Modified: 2005-07-16 13:32 UTC (History)
0 users

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


Attachments
Patch for evms_activate to be copied to /sbin for the initramfs file (gen_initramfs.sh.patch,1.29 KB, patch)
2005-07-13 08:31 UTC, Aaron Gipson
Details | Diff
Patch for evms_activate to be run from /bin in the initramfs file at boot (initrd.scripts.patch,325 bytes, patch)
2005-07-13 08:33 UTC, Aaron Gipson
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Aaron Gipson 2005-07-13 08:27:11 UTC
in the generic/initrd.scripts file it checks for /sbin/evms_activate to exist,
but in gen_initramfs.sh it copies evms_activate from /sbin/evms_activate to
"${TEMP}/initramfs-evms2-temp/bin/evms_activate"

Reproducible: Always
Steps to Reproduce:
1.  genkernel --evms2
2.  reboot system
3.

Actual Results:  
Since my root is setup as /dev/evms/root I receive a message about not a valid
root device

Expected Results:  
either attempt to run /bin/evms_activate in initrd.scripts or copy evms_activate
to "${TEMP}/initramfs-evms2-temp/sbin/evms_activate" in gen_initramfs.sh

--- generic/initrd.scripts      2005-07-13 09:56:00.000000000 -0500
+++ /root/initrd.scripts        2005-07-13 09:59:59.000000000 -0500
@@ -462,7 +462,7 @@

     if [ "${USE_EVMS2_NORMAL}" -eq '1' ]
     then
-       if [ -e '/sbin/evms_activate' ]
+       if [ -e '/bin/evms_activate' ]
        then
            good_msg "Activating EVMS"
            evms_activate


--- gen_initramfs.sh    2005-07-13 09:56:00.000000000 -0500
+++ /root/gen_initramfs.sh      2005-07-13 10:00:41.000000000 -0500
@@ -240,6 +240,7 @@
                then
                        print_info 1 '          EVMS2: Adding support...'
                        mkdir -p ${TEMP}/initramfs-evms2-temp/lib
+                       mkdir -p ${TEMP}/initramfs-evms2-temp/sbin
                        cp -a /lib/ld-* "${TEMP}/initramfs-evms2-temp/lib" ||
gen_die 'Could not copy files for EVMS2!'
                        cp -a /lib/libc-* /lib/libc.*
"${TEMP}/initramfs-evms2-temp/lib" || gen_die 'Could not copy files for EVMS2!'
                        cp -a /lib/libdl-* /lib/libdl.*
"${TEMP}/initramfs-evms2-temp/lib" || gen_die 'Could not copy files for EVMS2!'
@@ -249,7 +250,7 @@
                        cp -a /lib/evms "${TEMP}/initramfs-evms2-temp/lib" ||
gen_die 'Could not copy files for EVMS2!'
                        cp -a /lib/evms/*
"${TEMP}/initramfs-evms2-temp/lib/evms" || gen_die 'Could not copy files for EVMS2!'
                        cp -a /etc/evms.conf "${TEMP}/initramfs-evms2-temp/etc"
|| gen_die 'Could not copy files for EVMS2!'
-                       cp /sbin/evms_activate
"${TEMP}/initramfs-evms2-temp/bin/evms_activate" || gen_die 'Could not copy over
vgscan!'
+                       cp /sbin/evms_activate
"${TEMP}/initramfs-evms2-temp/sbin/evms_activate" || gen_die 'Could not copy
over vgscan!'
                fi
                cd "${TEMP}/initramfs-evms2-temp/"
                find . -print | cpio --quiet -o -H newc | gzip -9 >
${CACHE_DIR}/cpio/initramfs-evms2.cpio.gz
Comment 1 Aaron Gipson 2005-07-13 08:31:30 UTC
Created attachment 63316 [details, diff]
Patch for evms_activate to be copied to /sbin for the initramfs file

This is one option.  It fixes where evms_activate is copied to for the
initramfs file
Comment 2 Aaron Gipson 2005-07-13 08:33:20 UTC
Created attachment 63317 [details, diff]
Patch for evms_activate to be run from /bin in the initramfs file at boot
Comment 3 Aaron Gipson 2005-07-13 08:35:35 UTC
Comment on attachment 63317 [details, diff]
Patch for evms_activate to be run from /bin in the initramfs file at boot

This is another option.  It fixes where evms_activate is run from in the
initramfs file
Comment 4 Tim Yamin (RETIRED) gentoo-dev 2005-07-13 09:08:03 UTC
Patch #2 in my CVS queue, thanks!
Comment 5 Tim Yamin (RETIRED) gentoo-dev 2005-07-13 17:16:03 UTC
Fixed in 3.2.3, thanks!
Comment 6 Aaron Gipson 2005-07-15 20:45:28 UTC
(In reply to comment #5)
> Fixed in 3.2.3, thanks!

Sorry, I made a type o in my message, the patch was correct however.  if you
went with the first patch option which was to run evms_activate from /bin
instead of /sbin then the patch didn't make it into the updated version after
3.2.2.  As of 3.2.5 it is still incorrect.

Again, the resolution is to either copy the file to /sbin/ inside the initramfs
file or to change the generic/initrd.scripts to run evms_activate from /bin
where it is currently being copied to.
Comment 7 Tim Yamin (RETIRED) gentoo-dev 2005-07-16 13:32:04 UTC
Fixed in 3.2.7; thanks!