Add firstboot provisioning

This commit is contained in:
2025-04-21 22:14:35 +02:00
parent b9cdb9fa15
commit e7a3587501
6 changed files with 74 additions and 4 deletions

View File

@@ -1,4 +1,10 @@
#!/usr/bin/env bash
# enable ssh
touch /boot/ssh.txt
echo 'pi:$6$c70VpvPsVNCG0YR5$l5vWWLsLko9Kj65gcQ8qvMkuOoRkEagI90qi3F/Y7rm8eNYZHW8CY6BOIKwMH7a3YYzZYL90zf304cAHLFaZE0' > /boot/userconf.txt
# configure user
echo 'pi:$6$c70VpvPsVNCG0YR5$l5vWWLsLko9Kj65gcQ8qvMkuOoRkEagI90qi3F/Y7rm8eNYZHW8CY6BOIKwMH7a3YYzZYL90zf304cAHLFaZE0' > /boot/userconf.txt
# enable firstboot.service
cd /etc/systemd/system/multi-user.target.wants && ln -s /lib/systemd/system/firstboot.service .