-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
23 lines (18 loc) · 831 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
mount:
@sudo mkdir -p /media/${USER}/system-boot /media/${USER}/writable
sudo mount /dev/sdc1 /media/${USER}/system-boot
sudo mount /dev/sdc2 /media/${USER}/writable
umount:
sudo umount /media/${USER}/system-boot /media/${USER}/writable
@sudo rmdir /media/${USER}/system-boot /media/${USER}/writable
flash:
@sudo dd if=bootstrap/ubuntu-24.04.1-preinstalled-server-arm64+raspi.img of=/dev/sdc bs=4M conv=fsync status=progress
@notify-send "Flash complete"
configure: mount
sudo cp bootstrap/user-data.yaml /media/${USER}/system-boot/user-data
sudo cp bootstrap/network-config.yaml /media/${USER}/system-boot/network-config
ansible:
ansible-playbook -i inventory.yml playbook.yml
ansible-deps:
ansible-galaxy role install -r roles/requirements.yml --force
ansible-galaxy collection install -r roles/requirements.yml