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
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
Created attachment 63317 [details, diff] Patch for evms_activate to be run from /bin in the initramfs file at boot
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
Patch #2 in my CVS queue, thanks!
Fixed in 3.2.3, thanks!
(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.
Fixed in 3.2.7; thanks!