[readonly/geninitrd/devel: 252/334] Create mapper control device only when not using udev.

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


commit 8834d1a7c31b485041184d645fe3842d1c5c3209
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Fri Sep 23 23:14:16 2005 +0000

    Create mapper control device only when not using udev.
    
    svn-id: @6406

 geninitrd | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/geninitrd b/geninitrd
index 000086b..7d5dd6b 100755
--- a/geninitrd
+++ b/geninitrd
@@ -1194,8 +1194,10 @@ initrd_gen_lvm() {
 	mkdir -p $MNTIMAGE/tmp
 	mkdir -p $MNTIMAGE/proc
 	mkdir -p $MNTIMAGE/newroot
-	mkdir -p $MNTIMAGE/dev/mapper
-	mknod $MNTIMAGE/dev/mapper/control c 10 62
+	if ! is_yes "$USE_UDEV"; then
+		mkdir -p $MNTIMAGE/dev/mapper
+		mknod $MNTIMAGE/dev/mapper/control c 10 62
+	fi
 	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