From e8f0c1226fbf87d3be711a36693c30ed7745e45d Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Sun, 18 Nov 2012 11:38:55 -0500 Subject: init: declare defaults earlier Signed-off-by: Dave Reisner --- init | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/init b/init index b375e72..f3f9253 100644 --- a/init +++ b/init @@ -1,6 +1,8 @@ #!/usr/bin/ash udevd_running=0 +mount_handler=default_mount_handler +init=/sbin/init if [ -x /usr/bin/systemd-timestamp ]; then RD_TIMESTAMP=$(systemd-timestamp) @@ -43,12 +45,11 @@ unset rootdev fsck_root # Mount root at /new_root -${mount_handler:-default_mount_handler} /new_root +"$mount_handler" /new_root run_hookfunctions 'run_latehook' 'late hook' $LATEHOOKS run_hookfunctions 'run_cleanuphook' 'cleanup hook' $CLEANUPHOOKS -init=${init:-/sbin/init} if [ "$(stat -c %D /)" = "$(stat -c %D /new_root)" ]; then # Nothing got mounted on /new_root. This is the end, we don't know what to do anymore # We fall back into a shell, but the shell has now PID 1 -- cgit v1.2.3-24-g4f1b