]> Zhao Yanbai Git Server - minix.git/commitdiff
restore single user mode 29/2829/1
authorBen Gras <ben@minix3.org>
Fri, 12 Sep 2014 21:15:46 +0000 (23:15 +0200)
committerBen Gras <ben@minix3.org>
Fri, 12 Sep 2014 21:16:13 +0000 (23:16 +0200)
. the minix init started rc with the 'bootargs' variable.
  this can now be cleanly passed to rc by executing sysenv
  from the ramdisk rc script.

Change-Id: I68d0d2ab0be326b2ae30438a62dd7649b600c2d2

minix/drivers/storage/ramdisk/rc

index 94a17e5dfd0ceea54eb8a9b4bc4217059089e56a..6d1cc61fe9eb8aacfbf4ff887225c35ef8b89dda 100644 (file)
@@ -91,4 +91,4 @@ fi
 
 /bin/mount -e -n -t procfs none /proc || echo "WARNING: couldn't mount procfs"
 
-exec /bin/sh /etc/rc "$@"
+exec /bin/sh /etc/rc `sysenv bootopts` "$@"