hurd-i386 runsystem.sysv: honor init=something in the kernel command line.
Samuel Thibault
10 years ago
|
0 |
sysvinit (2.88dsf-54) UNRELEASED; urgency=medium
|
|
1 |
|
|
2 |
[ Justus Winter ]
|
|
3 |
* hurd-i386 runsystem.sysv: honor init=something in the kernel command line.
|
|
4 |
|
|
5 |
-- Samuel Thibault <sthibault@debian.org> Tue, 08 Apr 2014 01:41:51 +0200
|
|
6 |
|
0 | 7 |
sysvinit (2.88dsf-53) unstable; urgency=medium
|
1 | 8 |
|
2 | 9 |
[ Gabriele Giacone ]
|
17 | 17 |
|
18 | 18 |
# Shell used for normal single-user startup.
|
19 | 19 |
SHELL=/bin/sh
|
|
20 |
|
|
21 |
# The init program to call.
|
|
22 |
#
|
|
23 |
# Can be overridden using init=something in the kernel command line.
|
|
24 |
init=/sbin/init
|
20 | 25 |
|
21 | 26 |
###
|
22 | 27 |
|
|
81 | 86 |
shift
|
82 | 87 |
case "$arg" in
|
83 | 88 |
--*) ;;
|
|
89 |
init=*)
|
|
90 |
eval "${arg}"
|
|
91 |
;;
|
84 | 92 |
*=*) ;;
|
85 | 93 |
-*)
|
86 | 94 |
flags="${flags}${arg#-}"
|
|
110 | 118 |
fsysopts / --update --readonly
|
111 | 119 |
|
112 | 120 |
# Finally, start the actual SysV init.
|
113 | |
exec /sbin/init ${single} -a
|
|
121 |
exec ${init} ${single} -a
|