Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

install: .bootc-aleph.json is not written with --composefs-backend

Aperta
#2,541 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
65/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
rust

Direzione di ricerca

Start in crates/lib/src/install.rs at the cited install_container and install_with_sysroot locations, then trace the composefs install path and compare it with the ostree path. Check how InstallAleph is created and written, and whether existing install tests cover composefs. Done means a composefs install writes .bootc-aleph.json to the physical root with the expected installation details.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

With --composefs-backend, bootc install doesn't write .bootc-aleph.json to the physical root. The docs describe it as written after installation and readable at /sysroot/.bootc-aleph.json (bootc-installation(7)). On a booted composefs install:

$ ls -a /sysroot
.  ..  boot  composefs  lost+found  ostree  state
$ cat /sysroot/.bootc-aleph.json
cat: /sysroot/.bootc-aleph.json: No such file or directory

The same install without --composefs-backend has the file, with the digest, image, kernel and labels filled in:

$ ls -a /sysroot
.  ..  .bootc-aleph.json  boot  lost+found  ostree

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 a.raw b.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 /out/a.raw
# the same again without --composefs-backend, writing b.raw

InstallAleph is created only in install_container (install.rs L1330) and written only in install_with_sysroot (L1986), and both are on the ostree path.

I'd expect a composefs install to write the same file.

Related: #2535

Lingua principale
Rust
Stelle
2.3k
Fork
230
Merge medio
2g 20h
PR unite (30g)
48

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di bootc-dev/bootc

Tutte le issue di bootc-dev/bootc

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.