Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 373407

Summary: sys-fs/lvm2-2.02.73-r1 lvm2create_initrd creates ineffective /sbin/init script, missing LVM variable definition
Product: Gentoo Linux Reporter: Robert Forsman <gentoo>
Component: Current packagesAssignee: Robin Johnson <robbat2>
Status: RESOLVED UPSTREAM    
Severity: normal CC: agk, cardoe
Priority: Normal    
Version: 2008.0   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Robert Forsman 2011-06-28 21:22:01 UTC
The /sbin/init script in the initrd created by lvm2create_initrd includes a use of the variable $LVM, however no such variable is defined within the /sbin/init script.

The $LVM variable defined in the lvm2create_initrd script itself is not interpolated into the /sbin/init script because of the 'INIT' syntax in the << here document (which is certainly necessary).

I was able to work around this by adding LVM=lvm.static at the top of the <<'INIT' document, but this hard-code would not handle the situation where the user wishes to pick a different binary through the USE of the LVM environment variable around the lvm2create_initrd.


Reproducible: Always
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2011-09-13 06:46:57 UTC
Please submit changes for the lvm2create_initrd script to upstream.
There's at least one other bug for the LVM variable.