install: --stateroot is silently ignored with --composefs-backend
I maintainer di solito rispondono entro 1 giorno
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 48/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- rust
- Ambito
- operating-systems
Direzione di ricerca
Start by reading InstallComposefsOpts::validate in crates/lib/src/install.rs and the fixed layout in crates/lib/src/composefs_consts.rs, then trace how bootc_composefs handles installation options. Decide whether composefs should support stateroots or reject --stateroot; done means the option is no longer silently ignored, with behavior covered by an install test.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
bootc install to-disk --composefs-backend --stateroot myroot exits 0, but the stateroot name isn't used. The installed disk has state/os/default, and no path on the root partition is named myroot. Without --composefs-backend the deployment lands in ostree/deploy/myroot. The install output doesn't mention the stateroot on either backend.
Reproduced on quay.io/fedora/fedora-bootc:44@sha256:5ab8ee5189bb0f3870279723f5343474df002d8d6f46564702b3ad3ba7382d98 (bootc 1.16.13). In the commands, $IMG is an image built FROM that one, adding only config files for other options.
truncate -s 20G c.raw d.raw
podman run --rm --privileged --pid=host --security-opt label=type:unconfined_t \
-v /dev:/dev -v /var/lib/containers:/var/lib/containers -v $PWD:/out $IMG \
bootc install to-disk --via-loopback --filesystem ext4 --generic-image --wipe \
--composefs-backend --stateroot myroot /out/c.raw
# the same again without --composefs-backend, writing d.raw
With each root partition mounted:
# composefs disk
$ ls state/os
default
$ ls ostree/deploy
ls: cannot access 'ostree/deploy': No such file or directory
# ostree disk
$ ls ostree/deploy
myroot
InstallComposefsOpts::validate checks only the bootloader (install.rs L423-L439), the composefs layout uses a fixed state/os/default/var (composefs_consts.rs L11), and nothing under bootc_composefs reads the stateroot.
I'd expect --stateroot to be rejected with --composefs-backend, the way --bootloader=none is, unless composefs is meant to support stateroots.
Related: #2535
- Lingua principale
- Rust
- Stelle
- 2.3k
- Fork
- 230
- Merge medio
- 2g 21h
- PR unite (30g)
- 45
Preparare l'ambiente
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di bootc-dev/bootc
-
install: root SSH tmpfiles.d drop-in is labeled etc_runtime_t instead of etc_tForse già presa @andrewdunndev l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
auto-updates fail with `opendir(boot): Operation not permitted` when /boot is a systemd automount that has idled outForse già presa Una pull request collegata a questa issue è aperta o già unita. Apertatriaged
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
bootc-dev/bootc#2402 · 9 commenti · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 1 giorno
-
install: improve error message when systemd-boot is selected without composefs backendForse già presa @ASVLCII l’ha presa 24 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 65/100
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di bootc-dev/bootc
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
pnpm/pnpm#16635 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
bug llm translation
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
I maintainer di solito rispondono entro 1 giorno
-
skillfs: one malformed chat-log line aborts the entire skill-usage analysis (skill_usage_from_chat_logs.py)Forse già presa @zjncs l’ha presa oggi. Apertacomponent:skillfs
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
agentic-os-org/ANOLISA#6116 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
indygreg/cryptography-rs#99 ·