Correct D-103: ext4 XBOOTLDR is not readable by systemd-boot
This commit is contained in:
parent
8917c8d96b
commit
4346367f7f
3 changed files with 61 additions and 47 deletions
|
|
@ -27,36 +27,42 @@
|
|||
- Набор плагинов Cockpit ограничен тем, что есть в снапшоте (podman, machines,
|
||||
storaged, files); network/PCP-плагины в Arch не упакованы и не обещаются.
|
||||
|
||||
## D-103 — XBOOTLDR /boot, безопасный ESP sync и ограниченный retention (Accepted, 2026-11-10)
|
||||
## D-103 — Безопасная синхронизация ESP и ограниченный 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 и
|
||||
не проверял свободное место.
|
||||
`ostree admin deploy --retain`, а `boot-sync` не чистил старые копии и не проверял
|
||||
свободное место.
|
||||
|
||||
Пользователь принял исправление:
|
||||
Промежуточное предложение с **ext4 XBOOTLDR** на 4 GiB в `/boot` отклонено до
|
||||
публикации. Штатный systemd-boot наследует поддержку ФС от UEFI-прошивки
|
||||
(практически только FAT; ext4 требует ненадёжного внешнего EFI-драйвера), а
|
||||
штатный OSTree требует POSIX `/boot`: он создаёт `/boot/loader.N` и симлинк
|
||||
`loader`, использует атомарные переименования. FAT `/boot` не даёт симлинк, а
|
||||
ext4 XBOOTLDR systemd-boot не читает. Поэтому «чистый ESP» с systemd-boot в этой
|
||||
схеме OSTree невозможен; для этого нужен GRUB или изменённая схема загрузки
|
||||
OSTree — ни то, ни другое сейчас не принято.
|
||||
|
||||
- **Раскладка:** 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` и отложенная работа по
|
||||
- **Раскладка:** два раздела — FAT32 ESP **2 GiB** на `/efi` и ext4 root, где
|
||||
`/boot` лежит на корневой ФС. systemd-boot и его entries/ядра — на ESP;
|
||||
установщик выполняет первичное заполнение ESP после deploy.
|
||||
- **Retention:** убрать `--retain`; штатное поведение OSTree (booted, previous,
|
||||
pending, pinned) соответствует D-046. После успешного staging — best-effort
|
||||
`ostree admin cleanup`.
|
||||
- **Безопасный sync:** `boot-sync` удаляет копии ESP, которых нет в
|
||||
`/boot/ostree`, проверяет свободное место, копирует неполные каталоги через
|
||||
временное имя с проверкой и переносит entries только после того, как все
|
||||
ядра/initramfs есть на ESP. Ошибка сохраняет старые entries/default.
|
||||
Установщик выполняет ту же проверку при первичном заполнении.
|
||||
- Монтировать FAT32 ESP в `/boot` нельзя: OSTree нужна POSIX-ФС.
|
||||
- Чистый ESP возможен только отдельным будущим решением о смене загрузчика
|
||||
(например, GRUB) или изменении boot-схемы OSTree.
|
||||
|
||||
Дополняет storage profile D-065; выбор ФС для `/var` и отложенная работа по
|
||||
профилям диска не меняются.
|
||||
|
||||
## D-102 — kmscon с Terminus на всех редакциях (Accepted, 2026-11-10)
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ 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)
|
||||
## D-103 — Safe ESP synchronization 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
|
||||
|
|
@ -38,26 +38,32 @@ 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:
|
||||
An intermediate proposal to use a 4 GiB **ext4 XBOOTLDR** partition at `/boot` was
|
||||
rejected before publication. Stock systemd-boot inherits filesystem support from
|
||||
UEFI firmware (FAT in practice; ext4 needs an unreliable external EFI driver), and
|
||||
stock OSTree requires a POSIX `/boot` because it writes `/boot/loader.N` plus the
|
||||
`loader` symlink and uses atomic renames. FAT `/boot` fails the symlink; ext4
|
||||
XBOOTLDR is unreadable by systemd-boot. Consequently `/efi` cannot be a "pure ESP"
|
||||
with stock systemd-boot on this OSTree layout; that would require GRUB or a patched
|
||||
OSTree boot scheme, neither adopted now.
|
||||
|
||||
- **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.
|
||||
The corrected decision:
|
||||
|
||||
- **Storage layout:** keep two partitions: a **2 GiB** FAT32 ESP mounted at `/efi`
|
||||
and an ext4 root with `/boot` on the root filesystem. systemd-boot and its
|
||||
entries/kernels live on the ESP; the initial installer seeds the ESP after deploy.
|
||||
- **Retention:** stop passing `--retain` to `ostree admin deploy`; OSTree's default
|
||||
retention (booted, previous rollback, pending and explicitly pinned) matches D-046.
|
||||
A best-effort `ostree admin cleanup` runs after a successful stage.
|
||||
- **Safe sync:** `boot-sync` prunes ESP copies not present in `/boot/ostree`, checks
|
||||
free space before writing, copies 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 keeps the previous entries/default
|
||||
instead of publishing a broken one. The installer performs the same ordered
|
||||
verification for the first ESP seed.
|
||||
- Do not mount the FAT32 ESP at `/boot`; OSTree needs a POSIX filesystem there.
|
||||
- A pure-ESP layout remains possible only through a separate future decision to
|
||||
switch the bootloader (for example GRUB) or to change OSTree's boot layout.
|
||||
|
||||
This amends the D-065 storage profile. It does not change the file-system choice for
|
||||
`/var` or the deferred disk-profile work.
|
||||
|
|
@ -518,7 +524,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-103 | Fix the unbootable-update incident: keep a 2 GiB FAT32 ESP at /efi and /boot on ext4 root, run cleanup and drop `--retain` so retention is booted/previous/pending/pinned, seed the ESP at install and make boot-sync space-checked, pruned and entry-last. Reject the proposed ext4 XBOOTLDR because stock systemd-boot reads only firmware filesystems and stock OSTree needs a POSIX /boot; a pure ESP with systemd-boot is not possible. 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,10 +192,12 @@ 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. 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.
|
||||
23. D-033 selects systemd-boot initially. D-103 keeps a 2 GiB FAT32 ESP at `/efi`
|
||||
with `/boot` on ext4 root and a space-checked ESP mirror; ext4 XBOOTLDR is
|
||||
rejected because systemd-boot does not read ext4 on stock firmware. A pure-ESP
|
||||
layout is possible only with a different bootloader (for example GRUB) or a
|
||||
changed OSTree boot scheme. 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