While the addition of the lvm2create_initrd script is welcome, the included script uses some old mechanisms. I have been updating my own copy of that script for some time and have made it available on the forums. I think including a more modern version would be a good idea. I'm attaching my script to this bug in hopes that it will be added to the official ebuild. Reproducible: Always Steps to Reproduce: 1. NA 2. 3. Actual Results: NA Expected Results: NA Replacement script proposed and provided.
Created attachment 215193 [details] Updated lvm2create_initrd script. Uses cpio instread of ext2 and deals with suspend etc.
Please send your updates to upstream. I included it ONLY because some users were using it already, and they complained it broke with the static changes. I patched it explicitly so that it would continue to work with the lvm.static naming issue (which your version seems to omit, but is critically required).
I can certainly submit it upstream. The lvm.static is not needed with mine since it will copy the libs needed for the included binaries. I could switch it to static, but I don't see the benefit and the current version is working.
Also please talk to the users from bug #296198 that wanted the script changed to make sure your version works for them.