From d90305e027b3ac755ba4bd0321cf9994b3652055 Mon Sep 17 00:00:00 2001 From: Stefan Saraev Date: Mon, 19 Jan 2015 11:53:58 +0200 Subject: [PATCH] init: there can be only one default systemd unit --- packages/sysutils/busybox/scripts/init | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/sysutils/busybox/scripts/init b/packages/sysutils/busybox/scripts/init index 1fcd13c22e..386e79a469 100755 --- a/packages/sysutils/busybox/scripts/init +++ b/packages/sysutils/busybox/scripts/init @@ -103,10 +103,10 @@ wol_wait="${arg#*=}" ;; textmode) - INIT_ARGS="$INIT_ARGS --unit=textmode.target" + INIT_UNIT="--unit=textmode.target" ;; installer) - INIT_ARGS="$INIT_ARGS --unit=installer.target" + INIT_UNIT="--unit=installer.target" ;; debugging) DEBUG=yes @@ -668,13 +668,13 @@ fi if [ -f /sysroot/storage/.please_resize_me ] ; then - INIT_ARGS="--unit=fs-resize.target" + INIT_UNIT="--unit=fs-resize.target" fi if [ -f /sysroot/storage/.cache/reset_oe -o -f /sysroot/storage/.cache/reset_xbmc ] ; then - INIT_ARGS="--unit=factory-reset.target" + INIT_UNIT="--unit=factory-reset.target" fi # switch to new sysroot and start real init - exec /bin/busybox switch_root /sysroot /usr/lib/systemd/systemd $INIT_ARGS + exec /bin/busybox switch_root /sysroot /usr/lib/systemd/systemd $INIT_ARGS $INIT_UNIT error "switch_root" "Error in initramfs. Could not switch to new root"