Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 373407 - sys-fs/lvm2-2.02.73-r1 lvm2create_initrd creates ineffective /sbin/init script, missing LVM variable definition
Summary: sys-fs/lvm2-2.02.73-r1 lvm2create_initrd creates ineffective /sbin/init scrip...
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-28 21:22 UTC by Robert Forsman
Modified: 2011-09-13 06:46 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.