Accept D-103: XBOOTLDR boot layout and safe ESP sync
This commit is contained in:
parent
9aa15e83d2
commit
8917c8d96b
3 changed files with 70 additions and 1 deletions
|
|
@ -27,6 +27,38 @@
|
|||
- Набор плагинов Cockpit ограничен тем, что есть в снапшоте (podman, machines,
|
||||
storaged, files); network/PCP-плагины в Arch не упакованы и не обещаются.
|
||||
|
||||
## D-103 — XBOOTLDR /boot, безопасный ESP sync и ограниченный retention (Accepted, 2026-11-10)
|
||||
|
||||
KDE-хост не загрузился после обновления: ESP на 1 GiB была заполнена, `boot-sync`
|
||||
скопировал initramfs нового deployment (213 MB) частично, но всё равно опубликовал
|
||||
новую loader-запись; systemd-boot выбрал её, а ядра/initramfs на ESP не было.
|
||||
Разбор также показал, что каждое обновление использовало
|
||||
`ostree admin deploy --retain`, а `boot-sync` никогда не чистил старые копии ESP и
|
||||
не проверял свободное место.
|
||||
|
||||
Пользователь принял исправление:
|
||||
|
||||
- **Раскладка:** ESP остаётся небольшим FAT32 на `/efi`; отдельный **XBOOTLDR**
|
||||
4 GiB ext4 монтируется в `/boot` (GPT type `bc13c2ff-59e6-4262-a352-b275fd6f7172`).
|
||||
systemd-boot читает оба раздела, OSTree пишет ядра, initramfs и
|
||||
`loader/entries` прямо в `/boot`; зеркалирование на ESP не нужно. `/boot`
|
||||
обязан оставаться POSIX-ФС: OSTree использует симлинк `loader -> loader.N` и
|
||||
атомарные переименования, которых FAT32 не даёт.
|
||||
- **Retention:** убрать `--retain` из `ostree admin deploy`; штатное поведение
|
||||
OSTree (booted, previous rollback, pending, pinned) соответствует D-046. После
|
||||
успешного staging выполняется best-effort `ostree admin cleanup`.
|
||||
- **Безопасный legacy sync:** для существующих двухраздельных установок
|
||||
`boot-sync` удаляет копии ESP, которых нет в `/boot/ostree`, проверяет свободное
|
||||
место, копирует неполные каталоги через временное имя с проверкой и переносит
|
||||
loader-entries только после того, как все ядра/initramfs реально есть на ESP.
|
||||
Ошибка оставляет старые entries/default, а не публикует сломанную запись.
|
||||
- **Установщик:** создаёт ESP + XBOOTLDR + root, монтирует их, fstab содержит
|
||||
`/boot` ext4 и `/efi` vfat; начальное копирование entries/ostree на ESP удалено.
|
||||
Минимальный диск остаётся 12 GiB.
|
||||
|
||||
Это дополняет storage profile D-065; выбор ФС для `/var` и отложенная работа по
|
||||
профилям диска не меняются.
|
||||
|
||||
## D-102 — kmscon с Terminus на всех редакциях (Accepted, 2026-11-10)
|
||||
|
||||
Пользователь выбрал kmscon вместо fbcon на всех редакциях, со шрифтом Terminus,
|
||||
|
|
|
|||
|
|
@ -29,6 +29,39 @@ manifest. Explicit decisions recorded with the acceptance:
|
|||
- The Cockpit plugin set is limited to what the snapshot packages (podman, machines,
|
||||
storaged, files); network/PCP plugins are not packaged on Arch and are not promised.
|
||||
|
||||
## D-103 — XBOOTLDR /boot, safe ESP sync and bounded deployment retention (Accepted, 2026-11-10)
|
||||
|
||||
A KDE host failed to boot after an update: the 1 GiB ESP was full, `boot-sync`
|
||||
copied the new deployment's 213 MB initramfs only partially and then published the
|
||||
new loader entry anyway, so systemd-boot selected an entry whose kernel/initramfs
|
||||
were absent. Investigation also found that every update used
|
||||
`ostree admin deploy --retain`, and that `boot-sync` never pruned old ESP copies or
|
||||
checked free space.
|
||||
|
||||
The user accepted the following correction:
|
||||
|
||||
- **Storage layout:** ESP remains a small FAT32 partition at `/efi`; a separate
|
||||
4 GiB **XBOOTLDR** ext4 partition is mounted at `/boot`. The GPT type is
|
||||
`bc13c2ff-59e6-4262-a352-b275fd6f7172`. systemd-boot reads both partitions, so
|
||||
OSTree writes kernels, initramfs and `loader/entries` directly into `/boot` and
|
||||
no ESP mirroring is needed. `/boot` must stay a POSIX filesystem: OSTree relies on
|
||||
the `loader -> loader.N` symlink and atomic renames, which FAT32 cannot provide.
|
||||
- **Retention:** stop passing `--retain` to `ostree admin deploy`. OSTree's default
|
||||
retention (booted, previous rollback, pending and explicitly pinned deployments)
|
||||
matches D-046. A best-effort `ostree admin cleanup` runs after a successful stage.
|
||||
- **Safe legacy sync:** for existing two-partition installs, `boot-sync` prunes ESP
|
||||
copies not present in `/boot/ostree`, checks free space before copying, writes
|
||||
incomplete directories through a temporary name and verifies them, and copies
|
||||
loader entries only after every referenced kernel/initrd exists on the ESP. A
|
||||
failure leaves the previous entries/default intact instead of publishing a broken
|
||||
one. New XBOOTLDR installs skip the mirror step.
|
||||
- **Installer:** `install.sh` creates ESP + XBOOTLDR + root, mounts them, fstab has
|
||||
`/boot` ext4 and `/efi` vfat, and the initial `cp` of entries/ostree to the ESP is
|
||||
removed. The minimum disk remains 12 GiB.
|
||||
|
||||
This amends the D-065 storage profile. It does not change the file-system choice for
|
||||
`/var` or the deferred disk-profile work.
|
||||
|
||||
## D-102 — kmscon with Terminus on all editions (Accepted, 2026-11-10)
|
||||
|
||||
The user selected kmscon as the userspace KMS console instead of fbcon on every
|
||||
|
|
@ -485,6 +518,7 @@ on 2026-11-04. Implementation and the explicitly open details remain pending.
|
|||
| D-084 | Stop the yabloko candidate pipeline and move building to root@tall-bridge; installing necessary tools there is authorized. Transfer artifacts directly to terra for storage, signing and publication. Rename the signing profile to archipelago-stable while retaining the existing fingerprint and installed-client trust. Explicit user direction, 2026-11-06. | Accepted |
|
||||
| D-085 | Complete the operational cycle through publication of assembled OSTree layers and new ISOs on terra, and enable daily execution at the previously agreed 00:00 UTC / 03:00 MSK. The pipeline must own progression, durable status and failure reporting without requiring repeated operator/LLM prompts. Explicit execution request, 2026-11-06. This does not extend D-079 to new identities or certify outstanding stable/testing admission gates; experimental hardware-test publication must retain its actual scope. | Accepted |
|
||||
| D-086 | Return all builds and VM acceptance, including Flatpak application preparation/downloads, to yabloko. Retain a persistent Flatpak repository cache and attempt updates each build. Simplify the pipeline and make its stages, logs and operation understandable to a human. The final instruction cancels the proposed tall-bridge download relay and supersedes D-084's worker placement; terra retains artifact storage, signing and publication. Explicit user direction, 2026-11-06. Existing release gates remain unchanged. | Accepted |
|
||||
| D-103 | Fix the unbootable-update incident: add a 4 GiB XBOOTLDR ext4 partition at /boot and keep the FAT32 ESP at /efi, remove `ostree admin deploy --retain` and rely on OSTree's booted/previous/pending/pinned retention plus cleanup, and make legacy ESP sync space-checked, pruned and entry-last. Installer creates ESP+XBOOTLDR+root; /boot must not be the FAT32 ESP. Amends D-065. Explicit user direction, 2026-11-10. | Accepted |
|
||||
| D-102 | Ship kmscon 10.1 with the Terminus PSF font on all editions and the live ISO. Installed systems use kmscon for logind VTs (tty2+) via the packaged autovt alias, keeping tty1 for firstboot or the display manager and keeping getty as OnFailure fallback; the ISO uses kmscon on tty1. No mesa dependency. Growth +17.6 MiB installed on Core/Container Runner/ISO and +4.8 MiB on desktops. Explicit user direction, 2026-11-10. | Accepted |
|
||||
| D-101 | Disable and mask ttyS0 getty/firstboot units on provisioned installed systems in all editions, and roll the policy out through a Core-owned systemd drop-in so existing deployments receive it on update; the live ISO keeps its serial console and the operator may unmask. Explicit user direction, 2026-11-10. | Accepted |
|
||||
| D-100 | Accept the Container Runner server Purpose (Podman, Cockpit, stock Tailscale, binfmt) with Cockpit on LAN+tailnet and self-signed TLS, Tailscale and firewalld installed but disabled with no baked keys or rules, ext4 storage with filesystem profiles deferred, `stable/container` channel, same cadence/publication principles, no acceptance scenarios, and a Cockpit updates plugin over archipelagod D-Bus instead of PackageKit. Explicit user direction, 2026-11-10. | Accepted |
|
||||
|
|
|
|||
|
|
@ -192,7 +192,10 @@ D-064 selects deferred first-boot primary-user provisioning, Core CLI onboarding
|
|||
and native GNOME/KDE setup where feasible. Question 57 retains the D-036 boundary;
|
||||
question 72 tracks the remaining control-layer integration contract.
|
||||
|
||||
23. D-033 selects systemd-boot initially. What exact UEFI/BLS, ESP/XBOOTLDR and packaged mkinitcpio integration profile is required?
|
||||
23. D-033 selects systemd-boot initially. D-103 settles the first profile: FAT32 ESP
|
||||
at `/efi`, 4 GiB XBOOTLDR ext4 at `/boot`, OSTree BLS entries in `/boot`, and a
|
||||
safe legacy ESP mirror for older installs. Exact packaged mkinitcpio integration
|
||||
and cross-hardware acceptance remain open.
|
||||
24. Which filesystem and partition layout is the MVP default: ext4 or Btrfs, single root or separate state partitions?
|
||||
D-065 selects GPT/FAT32 ESP/ext4 root for the first experimental x86_64 UEFI VM
|
||||
ISO; a separate /boot is permitted if required. Production layout details remain open.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue