]> git.pld-linux.org Git - projects/geninitrd.git/blobdiff - geninitrd
- it'd be nice if e newly established inint program would be executable
[projects/geninitrd.git] / geninitrd
index a44fc6194bdc487b2309e0d6a9c7f2f56f43ca8c..5b4f28e15bbf8dbcd38e71cf34f63d32949605ee 100755 (executable)
--- a/geninitrd
+++ b/geninitrd
@@ -1498,7 +1498,7 @@ EOF
        cat << EOF >> "$s"
 mount -t $rootFs \$root /newroot 
 init="\$(busybox awk ' /init=\// { gsub(/.*init=/,NIL,\$0); gsub(/ .*/,NIL,\$0); print \$0; }  ' /proc/cmdline )"
-if [ -z "\$init" -o ! -n "/newroot\$init" ]; then
+if [ -z "\$init" -o ! -x "/newroot\$init" ]; then
        init=/sbin/init
 fi
 umount /proc
This page took 0.027287 seconds and 4 git commands to generate.