Move user change early in the process

this allows ssh'ing in and still allowing the init script to complete
This commit is contained in:
Keagan McClelland
2022-02-21 17:41:41 -07:00
parent 87c69db7b0
commit 4fa2c11de7

View File

@@ -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