From 87be0942b20e567a49c5f011cc66a8febae0ff1e Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Sat, 16 Nov 2013 17:54:00 +0100 Subject: [rootfs-stage31] Fix root password substitution in init --- remote/rootfs/rootfs-stage31/data/init | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'remote/rootfs') diff --git a/remote/rootfs/rootfs-stage31/data/init b/remote/rootfs/rootfs-stage31/data/init index 1dd0c108..fc6e3391 100755 --- a/remote/rootfs/rootfs-stage31/data/init +++ b/remote/rootfs/rootfs-stage31/data/init @@ -98,7 +98,7 @@ tar -cp "/bin" "/sbin" "/usr/bin" "/usr/sbin" "/etc/functions.inc" | tar -xp -C # 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" + sed -i "s#^root:[^:]*:#root:$SLX_ROOT_PASS:#" "${FUTURE_ROOT}/etc/shadow" fi # one last debug shell if activated -- cgit v1.2.3-55-g7522