From f7f1b117d6bb22cfa2a656cd8f9ac892a31e7607 Mon Sep 17 00:00:00 2001 From: czarny Date: Sat, 9 Dec 2006 23:42:52 +0000 Subject: [PATCH] - it'd be nice if e newly established inint program would be executable svn-id: @8091 --- geninitrd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/geninitrd b/geninitrd index a44fc61..5b4f28e 100755 --- 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 -- 2.44.0