From bc394d7d5caed5f3228c627b59d593c8af000079 Mon Sep 17 00:00:00 2001 From: Pavel Isaev Date: Wed, 11 Nov 2026 02:44:14 +0300 Subject: [PATCH] Correct D-103/D-105: OSTree forbids --retain with --stage --- ru/spec/decision-log.md | 19 ++++++++++++++----- spec/decision-log.md | 20 +++++++++++++++----- 2 files changed, 29 insertions(+), 10 deletions(-) diff --git a/ru/spec/decision-log.md b/ru/spec/decision-log.md index c96916b..db693b9 100644 --- a/ru/spec/decision-log.md +++ b/ru/spec/decision-log.md @@ -27,6 +27,14 @@ - Набор плагинов Cockpit ограничен тем, что есть в снапшоте (podman, machines, storaged, files); network/PCP-плагины в Arch не упакованы и не обещаются. +Уточнение и первопричина (та же сессия): `Stage` расширений падал на каждом +хосте с `ostree: error: --stage cannot currently be combined with --retain +arguments`. Команда deploy передавала `--retain` (исторически), а позже +`--retain-rollback --retain-pending` — всё это OSTree запрещает с `--stage`. +Теперь retain-флаги убраны, а завершение операции ретраит кратковременно занятый +host lock вместо того, чтобы оставлять прерванный stage в неконечном состоянии. +Ретрай `Busy` также сохранён. + ## D-105 — Полный набор прошивок в Core, виртуальная клавиатура KDE, устойчивый staging (Accepted, 2026-11-11) На KDE-хосте `extension add linux-firmware-qcom plasma-keyboard …` запланировал @@ -90,11 +98,12 @@ OSTree — ни то, ни другое сейчас не принято. - **Раскладка:** два раздела — FAT32 ESP **2 GiB** на `/efi` и ext4 root, где `/boot` лежит на корневой ФС. systemd-boot и его entries/ядра — на ESP; установщик выполняет первичное заполнение ESP после deploy. -- **Retention:** заменить голый `--retain` (он хранил все старые deployment) на - `--retain-rollback --retain-pending`. Штатный deploy сохраняет только booted и - новый deployment и удалил бы rollback; явные флаги нужны для D-046: booted, - previous rollback, pending, pinned. После успешного staging — best-effort - `ostree admin cleanup`. +- **Retention:** не передавать `--retain`-флаги с `--stage`; OSTree запрещает эту + комбинацию (`--stage cannot currently be combined with --retain arguments`). + Retention staged-deploy применяет позже `ostree admin finalize-staged`, который + сохраняет booted, previous rollback, pending и pinned (D-046). После успешного + staging — best-effort `ostree admin cleanup`. Это же чинит Host Extensions, чей + `Stage` молча падал на той же ошибке аргументов на каждом хосте. - **Безопасный sync:** `boot-sync` удаляет копии ESP, которых нет в `/boot/ostree`, проверяет свободное место, копирует неполные каталоги через временное имя с проверкой и переносит entries только после того, как все diff --git a/spec/decision-log.md b/spec/decision-log.md index ee9b8ca..3827be7 100644 --- a/spec/decision-log.md +++ b/spec/decision-log.md @@ -29,6 +29,14 @@ 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. +Correction and root cause (same session): the extension `Stage` failed on every +host with `ostree: error: --stage cannot currently be combined with --retain +arguments`. The deploy command was passing `--retain` (historically) and later +`--retain-rollback --retain-pending`, all of which OSTree forbids with `--stage`. +The deploy args now omit retain flags, and the completion path retries the +transiently-held host lock instead of stranding an interrupted stage. The `Busy` +retry is retained as well. + ## D-105 — Full firmware set in Core, KDE virtual keyboard, resilient extension staging (Accepted, 2026-11-11) On a KDE host, `extension add linux-firmware-qcom plasma-keyboard …` planned the @@ -93,11 +101,13 @@ 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:** replace bare `--retain` (which kept every old deployment) with - `--retain-rollback --retain-pending`. Default OSTree deploy keeps only booted and - the new deployment and would drop the rollback, so the explicit flags are required - to match D-046: booted, previous rollback, pending and explicitly pinned. A - best-effort `ostree admin cleanup` runs after a successful stage. +- **Retention:** do not pass any `--retain` flag with `--stage`; OSTree rejects the + combination (`--stage cannot currently be combined with --retain arguments`). + Staged-deploy retention is applied later by `ostree admin finalize-staged`, which + keeps booted, previous rollback, pending and explicitly pinned (D-046). A + best-effort `ostree admin cleanup` runs after a successful stage. This also fixes + the Host Extension path, whose `Stage` had silently failed on the same argument + error on every host. - **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