[readonly/geninitrd/devel: 253/334] Always create /dev/mapper/control for our sake.

draenog draenog at pld-linux.org
Sat Nov 2 19:32:48 CET 2013


commit 9aa1ba3b29b49ad9facb237f8eb81895de6fa582
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Tue Nov 1 15:10:05 2005 +0000

    Always create /dev/mapper/control for our sake.
    
    svn-id: @6508

 geninitrd | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/geninitrd b/geninitrd
index 7d5dd6b..000086b 100755
--- a/geninitrd
+++ b/geninitrd
@@ -1194,10 +1194,8 @@ initrd_gen_lvm() {
 	mkdir -p $MNTIMAGE/tmp
 	mkdir -p $MNTIMAGE/proc
 	mkdir -p $MNTIMAGE/newroot
-	if ! is_yes "$USE_UDEV"; then
-		mkdir -p $MNTIMAGE/dev/mapper
-		mknod $MNTIMAGE/dev/mapper/control c 10 62
-	fi
+	mkdir -p $MNTIMAGE/dev/mapper
+	mknod $MNTIMAGE/dev/mapper/control c 10 62
 	echo "mount -t proc none /proc" >> "$s"
 	echo "mount -t tmpfs none /tmp" >> "$s"
 	if [ "$LVMTOOLSVERSION" = "1" ] ; then
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/readonly/geninitrd.git/commitdiff/398807324938659207036e520c0950a61ef50c11



More information about the pld-cvs-commit mailing list