diff options
| author | Jonathan Bauer | 2013-11-06 14:00:56 +0100 |
|---|---|---|
| committer | Jonathan Bauer | 2013-11-06 14:00:56 +0100 |
| commit | 46a5d3e9634e26ebccede69d9899bc2aa8090902 (patch) | |
| tree | 6d9372d781d6efa2ba3c413002d511c4997002ba /remote | |
| parent | [rootfs-stage31] set the root password in 'bin/activate_sysconfig' (diff) | |
| download | tm-scripts-46a5d3e9634e26ebccede69d9899bc2aa8090902.tar.gz tm-scripts-46a5d3e9634e26ebccede69d9899bc2aa8090902.tar.xz tm-scripts-46a5d3e9634e26ebccede69d9899bc2aa8090902.zip | |
[rootfs-stage31] revert: etc/shadow not there yet in
bin/activate_sysconfig
Diffstat (limited to 'remote')
| -rwxr-xr-x | remote/rootfs/rootfs-stage31/data/bin/activate_sysconfig | 4 | ||||
| -rwxr-xr-x | remote/rootfs/rootfs-stage31/data/init | 5 |
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." |
