summaryrefslogtreecommitdiffstats
path: root/remote
diff options
context:
space:
mode:
Diffstat (limited to 'remote')
-rwxr-xr-xremote/rootfs/rootfs-stage31/data/bin/activate_sysconfig4
-rwxr-xr-xremote/rootfs/rootfs-stage31/data/init5
2 files changed, 5 insertions, 4 deletions
diff --git a/remote/rootfs/rootfs-stage31/data/bin/activate_sysconfig b/remote/rootfs/rootfs-stage31/data/bin/activate_sysconfig
index ca5be6c4..3e78383e 100755
--- a/remote/rootfs/rootfs-stage31/data/bin/activate_sysconfig
+++ b/remote/rootfs/rootfs-stage31/data/bin/activate_sysconfig
@@ -61,10 +61,6 @@ HEREEND
hwclock -s -u
fi
- # set the SLX_ROOT_PASS if given in config
- if [ ! -z "$SLX_ROOT_PASS" ]; then
- sed -i "s/^root:[^:]*:/root:$SLX_ROOT_PASS:/" "${FUTURE_ROOT}/etc/shadow"
- fi
tar xf "${CONFIG}.tgz" -C "${FUTURE_ROOT}" || { echo "Could not untar ${CONFIG}.tgz to ${FUTURE_ROOT}"; return 1; }
}
diff --git a/remote/rootfs/rootfs-stage31/data/init b/remote/rootfs/rootfs-stage31/data/init
index d69de460..1dd0c108 100755
--- a/remote/rootfs/rootfs-stage31/data/init
+++ b/remote/rootfs/rootfs-stage31/data/init
@@ -96,6 +96,11 @@ fi
tar -cp "/bin" "/sbin" "/usr/bin" "/usr/sbin" "/etc/functions.inc" | tar -xp -C "${FUTURE_ROOT}/opt/openslx/"
#echo 'blacklist pcspkr' >> /mnt/etc/modprobe.d/blacklist.conf
+# set the SLX_ROOT_PASS if given in config
+if [ ! -z "$SLX_ROOT_PASS" ]; then
+ sed -i "s/^root:[^:]*:/root:$SLX_ROOT_PASS:/" "${FUTURE_ROOT}/etc/shadow"
+fi
+
# one last debug shell if activated
[ $DEBUG -ge 1 ] && drop_shell "Requested Debug Shell: before switch_root."