fix: restore RPi4 SD boot after imaging

This commit is contained in:
juvenal.diaz 2026-10-24 09:02:58 -06:00
parent 1b61567f9a
commit 70c38215f4
1 changed files with 1 additions and 0 deletions

View File

@ -79,6 +79,7 @@ sudo mkdir -p "$root/etc/sudoers.d"
printf 'jv ALL=(ALL) NOPASSWD:ALL\n' | sudo tee "$root/etc/sudoers.d/90-homelab-jv" >/dev/null
sudo chmod 0440 "$root/etc/sudoers.d/90-homelab-jv"
REMOTE
ssh -i "${rpi_key}" -o BatchMode=yes "${rpi_user}@${rpi_host}" 'sudo raspi-config nonint do_boot_order B3 || true'
echo "RPi4 image installed and headless configuration injected. Rebooting..."
ssh -i "${rpi_key}" -o BatchMode=yes "${rpi_user}@${rpi_host}" 'sudo reboot' || true
;;