Update first-boot documentation and script to clarify boot order configuration for Pi 5 and include rpi-eeprom in package installations. Adjust logging messages for better user guidance on EEPROM settings and potential issues during boot order changes.

This commit is contained in:
nearxos
2026-02-20 12:41:35 +02:00
parent 8d50629b92
commit ccd99d8b06
2 changed files with 7 additions and 7 deletions

View File

@@ -57,9 +57,9 @@ install_oneshot() {
log "--- Installing packages ---"
log "Running apt-get update ..."
apt-get update -qq
log "Installing: git chromium wmctrl openssh-server swaybg wlr-randr maliit-keyboard xinput-calibrator"
log "Installing: git chromium wmctrl openssh-server swaybg wlr-randr maliit-keyboard xinput-calibrator rpi-eeprom"
apt-get install -y -qq git chromium wmctrl openssh-server \
swaybg wlr-randr maliit-keyboard xinput-calibrator
swaybg wlr-randr maliit-keyboard xinput-calibrator rpi-eeprom
log "Packages installed successfully"
# --- 2. Dirs and kiosk files from file server ---
@@ -158,7 +158,6 @@ update-initramfs -u -k all 2>/dev/null || true
# --- 6c. Boot order: network first, then eMMC/SD (for future network boot / re-provisioning) ---
# BOOT_ORDER: 0x2 = network, 0x1 = SD/eMMC. 0x21 = try network first, then local storage.
# On Pi 5 / reTerminal DM the EEPROM layout differs; rpi-eeprom-update -l may not return a path (skip is normal).
log "--- Boot order (network first, then eMMC/SD) ---"
if command -v rpi-eeprom-config >/dev/null 2>&1 && command -v rpi-eeprom-update >/dev/null 2>&1; then
BOOTCONF="/tmp/first-boot-eeprom-conf.txt"
@@ -174,7 +173,7 @@ if command -v rpi-eeprom-config >/dev/null 2>&1 && command -v rpi-eeprom-update
log "WARNING: rpi-eeprom-config --apply failed; boot order unchanged"
fi
else
log "Boot order unchanged (reTerminal DM / Pi 5 use a different bootloader; rpi-eeprom-update did not provide a config file — this is normal)"
log "WARNING: Could not read current EEPROM config; skipping boot order change (run 'rpi-eeprom-update -l' as root to check)"
fi
rm -f "$BOOTCONF"
else