commit 481bdb7790b96e1da861194d26d02dd45f1b045f
Author: Elan Ruusamäe <[email protected]>
Date:   Tue Dec 24 02:26:40 2013 +0200

    do not attempt to mknod if $maj and $min missing

 geninitrd | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/geninitrd b/geninitrd
index fdca56b..45484ba 100755
--- a/geninitrd
+++ b/geninitrd
@@ -921,7 +921,7 @@ initrd_gen_initramfs_switchroot() {
                        device=$ROOT
                fi
 
-               if [ "$device" -a ! -b $device ]; then
+               if [ "$device" -a ! -b $device -a "$maj$min" ]; then
                        mknod -m 660 $device b $maj $min
                fi
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/projects/geninitrd.git/commitdiff/481bdb7790b96e1da861194d26d02dd45f1b045f

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to