install: .bootc-aleph.json is not written with --composefs-backend
Les mainteneurs répondent en général sous 2 jours
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Accessibilité débutants
- 65/100
- Type d'issue
- Bug
- Clarté
- Clairement spécifiée
- Activité
- Active
- Stack technique
- rust
- Domaine
- operating-systems
Piste de recherche
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.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
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
- Langage dominant
- Rust
- Étoiles
- 2.3k
- Forks
- 230
- Merge moyen
- 3 j 19 h
- PR mergées (30 j)
- 37
Préparer son environnement
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de bootc-dev/bootc
-
auto-updates fail with `opendir(boot): Operation not permitted` when /boot is a systemd automount that has idled outPeut-être pris @cgwalters-bot l’a pris il y a 1 jour. Ouvertetriaged
Difficulté 2/5 1-3 heures Accessibilité débutants 70/100
bootc-dev/bootc#2402 · 10 commentaires · 1 réaction ·
Les mainteneurs répondent en général sous 2 jours
-
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
Les mainteneurs répondent en général sous 2 jours
-
install: improve error message when systemd-boot is selected without composefs backendPeut-être à nouveau libre Une pull request pour cette issue a été fermée sans être fusionnée. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
Les mainteneurs répondent en général sous 2 jours
-
Difficulté 2/5 1-3 heures Accessibilité débutants 52/100
Les mainteneurs répondent en général sous 2 jours
-
Difficulté 4/5 3-5 jours Accessibilité débutants 48/100
Les mainteneurs répondent en général sous 2 jours
Toutes les issues de bootc-dev/bootc
Issues similaires
-
bug priority: low
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
storytold/photocraft#12183 · 1 commentaire ·
Les mainteneurs répondent en général sous 2 jours
-
area:render needs-triage
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
bherbruck/solvecraft#13138 ·
-
testing
Difficulté 2/5 1-3 heures Accessibilité débutants 65/100
-
Difficulté 2/5 1-3 heures Accessibilité débutants 86/100
ratatui/ratatui-textarea#39 ·
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
transit-audio/transit#369 ·