]> git.pld-linux.org Git - projects/geninitrd.git/commitdiff
do not attempt to mknod if $maj and $min missing
authorElan Ruusamäe <glen@delfi.ee>
Tue, 24 Dec 2013 00:26:40 +0000 (02:26 +0200)
committerElan Ruusamäe <glen@delfi.ee>
Tue, 24 Dec 2013 00:26:40 +0000 (02:26 +0200)
geninitrd

index fdca56b700997c5ea8a8bff80f848dd3eb71d86d..45484bad7f41d6994cc474f4f8132f1229107595 100755 (executable)
--- 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
 
This page took 0.282535 seconds and 4 git commands to generate.