mirror of
https://github.com/0x1d/terraform-docker-packer.git
synced 2025-12-16 06:34:33 +01:00
provision image through Terraform
This commit is contained in:
10
examples/raspios/scripts/pi.sh
Normal file
10
examples/raspios/scripts/pi.sh
Normal file
@@ -0,0 +1,10 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# enable ssh
|
||||
touch /boot/ssh.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 .
|
||||
Reference in New Issue
Block a user