Error message about swap libs being invalid when evms_activate is run durring bootup while still in the initramfs Reproducible: Always Steps to Reproduce: 1. genkernel --evms2 2. reboot system Actual Results: Received a message about library files being invalid Expected Results: The files are not needed according to another bug report that was filed and the comments listed inside the gen_initrd.sh file within the create_base_initrd_sys function EVMS section --- gen_initramfs.sh 2005-07-13 09:56:00.000000000 -0500 +++ /root/gen_initramfs.sh 2005-07-13 10:49:11.000000000 -0500 @@ -250,6 +250,13 @@ 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!' + + # Fix EVMS2 copmlaining that it can't find the swap utilities. + # These are not required in the initramfs + for swap_libs in "${TEMP}/initramfs-evms2-temp/lib/evms/*swap*.so" + do + rm ${swap_libs} + done fi cd "${TEMP}/initramfs-evms2-temp/" find . -print | cpio --quiet -o -H newc | gzip -9 > ${CACHE_DIR}/cpio/initramfs-evms2.cpio.gz
Created attachment 63318 [details, diff] removes the swap library files Just copied the section from the gen_initrd.sh file where it removed the "${TEMP}/initrd-temp/lib/evms/*swap*.so" files and changed it to the correct initramfs path "${TEMP}/initramfs-evms2-temp/lib/evms/*swap*.so"
In my commit queue, as a sidenote you can just do """rm "${TEMP}/initramfs-evms2-temp/lib/evms/*swap*.so""" instead of having to do a for... do... rm... done construction. Thanks!
(In reply to comment #2) Didn't think about doing it that way, so I tried it two things I ran into that you might or might not have done... 1. The path should be ${TEMP}/initramfs-evms2-temp/lib/evms/*/*swap*.so There is a folder inside the evms folder and that's the one that contains the swap file. 2. Can't put quotes around the path listed above, it will fail saying: "rm: cannot remove `/var/tmp/genkernel/initramfs-evms2-temp/lib/evms/*/*swap*.so': No such file or directory"
Fixed in 3.2.3, thanks!