Author: sparky
Date: Thu Feb  1 10:38:17 2007
New Revision: 8216

Modified:
   geninitrd/trunk/geninitrd
Log:
- there is no way to pass init application to switchroot, there is no need
  to do so anyway


Modified: geninitrd/trunk/geninitrd
==============================================================================
--- geninitrd/trunk/geninitrd   (original)
+++ geninitrd/trunk/geninitrd   Thu Feb  1 10:38:17 2007
@@ -1547,12 +1547,8 @@
 EOF
        cat << EOF >> "$s"
 mount -t $rootFs -r \$device /newroot
-init="\$(busybox awk ' /init=\// { gsub(/.*init=/,NIL,\$0); gsub(/ 
.*/,NIL,\$0); print \$0; }  ' /proc/cmdline )"
-if [ -z "\$init" -o ! -x "/newroot\$init" ]; then
-       init=/sbin/init
-fi
 umount /proc
-exec switchroot /newroot \$init
+exec switchroot /newroot
 EOF
        # we need real file, not symlink
        rm -f $MNTIMAGE/init
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to