[projects/geninitrd] do not attempt to mknod if $maj and $min missing
glen
glen at pld-linux.org
Tue Dec 24 01:26:43 CET 2013
commit 481bdb7790b96e1da861194d26d02dd45f1b045f
Author: Elan Ruusamäe <glen at delfi.ee>
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
More information about the pld-cvs-commit
mailing list