Boot Environments mit Probe-Boot (bashclub-boot-env) #11

Closed
opened 2026-10-24 13:36:07 +02:00 by thorsten.spille · 2 comments

Snapshot/Klon des Systems vor jedem Upgrade, Probe-Boot mit automatischem Rückfall auf das vorige BE (CLAUDE.md, ADR 0009).

Snapshot/Klon des Systems vor jedem Upgrade, Probe-Boot mit automatischem Rückfall auf das vorige BE (CLAUDE.md, ADR 0009).
Author
Owner

Stufe 1 umgesetzt (fdf9756), Paket bashclub-boot-env, Teil des Metapakets:

  • bashclub-be snapshot [--apt] [<name>] | list | prune | check-reboot
  • APT-Hook (DPkg::Pre-Invoke): ein Snapshot @apt-<datum> je apt-Lauf (Eigenschaft org.bashclub:be=apt), Aufbewahrung KEEP_APT (Standard 10) in /etc/bashclub/boot-env.conf
  • Reboot-Guard: neuester Kernel mit ZFS-Modul im initramfs, ZFSBootMenu auf einer ESP; Ergebnis auch in /run/bashclub-be/reboot-blocked
  • VM-Test prüft Hook, Aufbewahrung und Guard

Stufe 2 (offen, Entscheidung Thorsten): Dataset-Layout außerhalb der BEs (/home, /root, /var/log, …), Probe-Boot mit Rückfall nach Spike B (Hooks + Watchdog), Zustand unter BIOS (keine UEFI-Variable), automatischer Neustart über den Guard.

Stufe 1 umgesetzt (fdf9756), Paket `bashclub-boot-env`, Teil des Metapakets: - `bashclub-be snapshot [--apt] [<name>] | list | prune | check-reboot` - APT-Hook (`DPkg::Pre-Invoke`): ein Snapshot `@apt-<datum>` je apt-Lauf (Eigenschaft `org.bashclub:be=apt`), Aufbewahrung `KEEP_APT` (Standard 10) in `/etc/bashclub/boot-env.conf` - Reboot-Guard: neuester Kernel mit ZFS-Modul im initramfs, ZFSBootMenu auf einer ESP; Ergebnis auch in `/run/bashclub-be/reboot-blocked` - VM-Test prüft Hook, Aufbewahrung und Guard Stufe 2 (offen, Entscheidung Thorsten): Dataset-Layout außerhalb der BEs (`/home`, `/root`, `/var/log`, …), Probe-Boot mit Rückfall nach Spike B (Hooks + Watchdog), Zustand unter BIOS (keine UEFI-Variable), automatischer Neustart über den Guard.
Author
Owner

Stufe 2 umgesetzt (bashclub-os 3c265ba, bashclub-zfsbootmenu b9), Pakete +b13 in testing, ISO aktualisiert.

  • Gemeinsame Datasets außerhalb der BEs: rpool/home, rpool/home/root, rpool/var/log, rpool/var/lib/containers
  • bashclub-be reboot: Reboot-Guard, Rückfall-BE aus dem Stand des letzten Starts klonen, bootfs = Rückfall, Zustand auf allen ESPs (UEFI und BIOS gleich)
  • ZBM-Hooks: Probe-Start per kexec mit Hardware-Watchdog, zweiter Versuch fällt zurück
  • bashclub-be-confirm.service: bestätigt (bootfs = neu, alte Rückfall-BEs weg) oder meldet den Rückfall (probe-failed, Unit failed)

VM-Test 7 (Lauf 13, OVMF, i6300esb) grün: Bestätigung, kein Watchdog-Reset danach, Rückfall nach Kernel-Panic, Rückfall nach Hänger per Watchdog.

Restpunkte in #14.

Stufe 2 umgesetzt (bashclub-os 3c265ba, bashclub-zfsbootmenu b9), Pakete `+b13` in testing, ISO aktualisiert. - Gemeinsame Datasets außerhalb der BEs: `rpool/home`, `rpool/home/root`, `rpool/var/log`, `rpool/var/lib/containers` - `bashclub-be reboot`: Reboot-Guard, Rückfall-BE aus dem Stand des letzten Starts klonen, bootfs = Rückfall, Zustand auf allen ESPs (UEFI und BIOS gleich) - ZBM-Hooks: Probe-Start per kexec mit Hardware-Watchdog, zweiter Versuch fällt zurück - `bashclub-be-confirm.service`: bestätigt (bootfs = neu, alte Rückfall-BEs weg) oder meldet den Rückfall (`probe-failed`, Unit failed) VM-Test 7 (Lauf 13, OVMF, i6300esb) grün: Bestätigung, kein Watchdog-Reset danach, Rückfall nach Kernel-Panic, Rückfall nach Hänger per Watchdog. Restpunkte in #14.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
bashclub/bashclub-os#11
No description provided.