Comment 2 for bug 69217

Revision history for this message
John Lenz (lenz) wrote :

Well ok. At the very least, you need to provide some option of disabling the lvm script... assuming a device is in /dev/mapper is not really all that good to go into an infinite loop!

So I see a few options:

1) At the very least, check /proc/cmdline for something like "norootlvm", to allow to disable the lvm script manually.

2) Provide a hook script that gets run when the initramfs is created, that detects if root is on a lvm or not, and then stores the detection. This is the way cryptsetup does it, the results are stored in /conf/conf.d/cryptroot, and then the cryptroot script that runs during boot loads that file.

3) Combination of 1 and 2... this is actually what cryptsetup does. If there is no command line option, then the stuff from the file is used.

I can try coding this up (mainly by copying stuff from the cryptroot script), except I don't have a root lvm to test it on.