From: Elan Ruusamäe Date: Tue, 24 Dec 2013 00:26:40 +0000 (+0200) Subject: do not attempt to mknod if $maj and $min missing X-Git-Tag: 12719~13 X-Git-Url: http://git.pld-linux.org/gitweb.cgi?a=commitdiff_plain;h=481bdb7790b96e1da861194d26d02dd45f1b045f;p=projects%2Fgeninitrd.git do not attempt to mknod if $maj and $min missing --- 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