minor changes
This commit is contained in:
parent
451d68f9f2
commit
8016dc58f0
9
init
9
init
@ -148,9 +148,7 @@ boot_system()
|
|||||||
# use 'env -i' to prevent leaking exported variables
|
# use 'env -i' to prevent leaking exported variables
|
||||||
# word splitting is safe by design
|
# word splitting is safe by design
|
||||||
# shellcheck disable=2068
|
# shellcheck disable=2068
|
||||||
exec env -i \
|
exec env -i TERM=linux PATH=/bin:/sbin:/usr/bin:/usr/sbin \
|
||||||
TERM=linux \
|
|
||||||
PATH=/bin:/sbin:/usr/bin:/usr/sbin \
|
|
||||||
switch_root $@ || panic "failed to boot system"
|
switch_root $@ || panic "failed to boot system"
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -161,8 +159,11 @@ boot_system()
|
|||||||
set -ef; trap panic EXIT
|
set -ef; trap panic EXIT
|
||||||
|
|
||||||
prepare_environment
|
prepare_environment
|
||||||
run_hook init.early
|
|
||||||
parse_cmdline
|
parse_cmdline
|
||||||
|
|
||||||
|
run_hook init.early
|
||||||
|
|
||||||
|
# XXX may be moved to hooks soon
|
||||||
setup_devmgr
|
setup_devmgr
|
||||||
|
|
||||||
run_hook init
|
run_hook init
|
||||||
|
Loading…
Reference in New Issue
Block a user