Skip to content

Commit

Permalink
Create account in image
Browse files Browse the repository at this point in the history
  • Loading branch information
dbieber committed May 10, 2024
1 parent c673a58 commit 3952830
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -195,16 +195,27 @@ jobs:
net.ipv4.ip_forward=1
EOF
systemctl stop userconfig
systemctl disable userconfig
systemctl mask userconfig
- name: Adjust image configuration
run: |
# Find the boot partition
boot_partition=$(sudo blkid | grep -E 'TYPE="vfat"' | grep -i "UEFI" | cut -d: -f1)
echo "boot_partition = $boot_partition"
# Enable ssh
# Mount the boot partition
sudo mkdir /mnt/efi
sudo mount ${boot_partition} /mnt/efi
# Enable ssh
sudo touch /mnt/efi/ssh
# Set up the default user
echo "pi:$(echo 'raspberry' | openssl passwd -6 -stdin)" > /mnt/efi/userconf.txt
# Unmount the boot partition
sudo umount /mnt/efi
- name: Compress the release image
Expand Down

0 comments on commit 3952830

Please sign in to comment.