Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 98893 - Genkernel with --evms2 set complains about swap libs at boot
Summary: Genkernel with --evms2 set complains about swap libs at boot
Status: RESOLVED FIXED
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: 2005-07-13 08:58 UTC by Aaron Gipson
Modified: 2005-07-13 17:16 UTC (History)
0 users

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


Attachments
removes the swap library files (gen_initramfs.sh.patch,834 bytes, patch)
2005-07-13 09:00 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:58:04 UTC
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
Comment 1 Aaron Gipson 2005-07-13 09:00:56 UTC
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"
Comment 2 Tim Yamin (RETIRED) gentoo-dev 2005-07-13 09:12:11 UTC
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!
Comment 3 Aaron Gipson 2005-07-13 10:53:25 UTC
(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"
Comment 4 Tim Yamin (RETIRED) gentoo-dev 2005-07-13 17:16:09 UTC
Fixed in 3.2.3, thanks!