From bd2cb308854a5ec9f438c0604a47a5eef6880d92 Mon Sep 17 00:00:00 2001 From: Ahmed Abdelhalim Date: Mon, 11 Aug 2025 00:33:36 +0200 Subject: Fix raspberry install correct kernel/firmware using rpi-update It can't be tested on mocked debian docker container, therefore disabling the testing for it --- roles/bootstrap/vars/debian.yml | 26 -------------------------- roles/bootstrap/vars/raspberry.yml | 29 +++++++++++++++++++++++++++++ 2 files changed, 29 insertions(+), 26 deletions(-) delete mode 100644 roles/bootstrap/vars/debian.yml create mode 100644 roles/bootstrap/vars/raspberry.yml (limited to 'roles/bootstrap/vars') diff --git a/roles/bootstrap/vars/debian.yml b/roles/bootstrap/vars/debian.yml deleted file mode 100644 index a305470..0000000 --- a/roles/bootstrap/vars/debian.yml +++ /dev/null @@ -1,26 +0,0 @@ ---- -bootstrap_distro: - name: "bookworm" # => Debian 12/Raspberry OS - mirror_url: "http://deb.debian.org/debian" - packages: - - "raspberrypi-kernel" - - "raspberrypi-bootloader" - - "firmware-brcm80211" - - "rpi-eeprom" - -bootstrap_opts: "--arch=arm64" - -bootstrap_apt_ignored_preferences: "" - -# yamllint disable rule:line-length -bootstrap_apt_sources: | - deb [signed-by=/usr/share/keyrings/raspberrypi.gpg] http://archive.raspberrypi.org/debian {{ bootstrap_distro.name }} main - deb http://deb.debian.org/debian {{ bootstrap_distro.name }} main -# yamllint enable rule:line-length - -# 1 = SD card -# f = Restart (loop back) -# 6 = NVMe SSD -# 4 = USB mass storage -# 1 = SD card (fallback) -bootstrap_boot_order: "0x1f641" diff --git a/roles/bootstrap/vars/raspberry.yml b/roles/bootstrap/vars/raspberry.yml new file mode 100644 index 0000000..9915526 --- /dev/null +++ b/roles/bootstrap/vars/raspberry.yml @@ -0,0 +1,29 @@ +--- +bootstrap_distro: + name: "bookworm" # => Debian 12 + mirror_url: "http://deb.debian.org/debian" + packages: + - "rpi-eeprom" + - "rpi-update" + - "fake-hwclock" + - "man-db" + - "manpages" + - "net-tools" + - "ntp" + +bootstrap_opts: "--arch=arm64" + +bootstrap_apt_ignored_preferences: "" + +# yamllint disable rule:line-length +bootstrap_apt_sources: | + deb [signed-by=/usr/share/keyrings/raspberrypi.gpg] http://archive.raspberrypi.org/debian {{ bootstrap_distro.name }} main + deb http://deb.debian.org/debian {{ bootstrap_distro.name }} main +# yamllint enable rule:line-length + +# 1 = SD card +# f = Restart (loop back) +# 6 = NVMe SSD +# 4 = USB mass storage +# 1 = SD card (fallback) +bootstrap_boot_order: "0x1f641" -- cgit v1.2.3