From 4fa2c11de71a92ac2580560e7a33743e0b90fdea Mon Sep 17 00:00:00 2001 From: Keagan McClelland Date: Mon, 21 Feb 2022 17:41:41 -0700 Subject: [PATCH] Move user change early in the process this allows ssh'ing in and still allowing the init script to complete --- build/initialization.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/build/initialization.sh b/build/initialization.sh index 9b823459b..5f13ceb59 100755 --- a/build/initialization.sh +++ b/build/initialization.sh @@ -3,6 +3,13 @@ # Update repositories, install dependencies, do some initial configurations, set hostname, enable embassy-init, and config Tor set -e +# introduce start9 username and embassy as default password +usermod -l start9 -d /home/start9 -m pi +groupmod --new-name start9 pi +echo start9:embassy | chpasswd + +passwd -l start9 + ! test -f /etc/docker/daemon.json || rm /etc/docker/daemon.json mount -o remount,rw /boot @@ -66,13 +73,6 @@ EOF cat /embassy-os/product_key.txt | tr -d '\n' | sha256sum | head -c 32 | sed 's/$/\n/' > /etc/machine-id -# introduce start9 username and embassy as default password -usermod -l start9 -d /home/start9 -m pi -groupmod --new-name start9 pi -echo start9:embassy | chpasswd - -passwd -l start9 - raspi-config nonint enable_overlayfs # create a copy of the cmdline *without* the quirk string, so that it can be easily amended