commit c5ecb34222262b85f45d5cbbb4f9f71afe78be0c
Author: Elan Ruusamäe <[email protected]>
Date:   Wed May 14 00:08:09 2014 +0300

    do not write real-root-dev, if value to be written is 0

 geninitrd | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/geninitrd b/geninitrd
index ec7ebbb..8773697 100755
--- a/geninitrd
+++ b/geninitrd
@@ -859,7 +859,7 @@ initrd_gen_setrootdev() {
                        if [ -z "$rootnr" -a -e "$ROOT" ]; then
                                rootnr="$(busybox ls -lL ${ROOT} | busybox awk 
'{if (/^b/) { print 256 * $3 + $4; }}')"
                        fi
-                       if [ -n "$rootnr" ]; then
+                       if [ "$rootnr" -gt 0 ]; then
                                echo "$rootnr" > /proc/sys/kernel/real-root-dev
                        fi
                fi
================================================================

---- gitweb:

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

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

Reply via email to