[readonly/geninitrd: 430/1068] - add device-mapper to lvm types when using dmraid
draenog
draenog at pld-linux.org
Sat Nov 2 19:48:30 CET 2013
commit 3938fd10b9bb07ec37e1410682f3a41a94add061
Author: Elan Ruusamäe <glen at pld-linux.org>
Date: Fri Oct 5 22:33:55 2007 +0000
- add device-mapper to lvm types when using dmraid
svn-id: @8788
geninitrd | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/geninitrd b/geninitrd
index 9b84126..c0817d6 100755
--- a/geninitrd
+++ b/geninitrd
@@ -1340,6 +1340,9 @@ initrd_gen_lvm() {
if is_yes "$raidfound"; then
echo " md_component_detection = 1" >> "$MNTIMAGE/etc/lvm.conf"
fi
+ if is_yes "$USE_DMRAID"; then
+ echo ' types = [ "device-mapper", 254 ]' >> "$MNTIMAGE/etc/lvm.conf"
+ fi
lvm dumpconfig | awk '/filter=/' >> "$MNTIMAGE/etc/lvm.conf"
echo "}" >> "$MNTIMAGE/etc/lvm.conf"
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/readonly/geninitrd.git/commitdiff/147754ca159d40ca5eb541074dc043d8cbd92090
More information about the pld-cvs-commit
mailing list