Run bootc install failed with `STORAGE_OPTS=additionalimagestore=/run/host-container-storage` on FCOS

Offen
#174 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 2 Tagen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
35/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Veraltet
Tech-Stack
linux, rust
Bereich
infrastructure

Rechercherichtung

The report gives reproduction commands but names no source files or tests. Start by running the documented bcvk VM and bootc install steps with --bind-storage-ro, then compare the failing run with the workaround that mounts /run/host-container-storage into the container. Done means the failure is resolved without needing that extra bind mount; the issue provides no test entry point.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

Use bcvk to start quay.io/fedora/fedora-coreos:testing-devel libvirt VM with --bind-storage-ro, then run bootc install failed.

  • Start VM with --bind-storage-ro
sudo bcvk libvirt run --name test --filesystem xfs --disk-size 20G --bind-storage-ro --firmware uefi-secure quay.io/fedora/fedora-coreos:testing-devel
sudo bcvk libvirt ssh test
  • Run bootc install with env STORAGE_OPTS=additionalimagestore=/run/host-container-storage
podman run --rm --privileged -v /dev:/dev -v /var/lib/containers:/var/lib/containers -v /:/target \
--pid=host --security-opt label=type:unconfined_t \
localhost/bootc-integration:latest \
env BOOTC_BOOTLOADER_DEBUG=1 RUST_LOG=trace STORAGE_OPTS=additionalimagestore=/run/host-container-storage bootc install to-existing-root --skip-fetch-check --acknowledge-destructive --root-ssh-authorized-keys /target/root/.ssh/bcvk-id_rsa.pub --karg=console=ttyS0,115200n8

....
DEBUG open_image: opening image self=ImageProxy imgref="containers-storage:quay.io/curl/curl-base:latest"
TRACE open_image:impl_request_with_fds: sending request OpenImage self=ImageProxy imgref="containers-storage:quay.io/curl/curl-base:latest" self=ImageProxy method="OpenImage"
error: Installing to filesystem: resolving bound image quay.io/curl/curl-base:latest: failed to invoke method OpenImage: overlay: can't stat imageStore dir /run/host-container-storage: stat /run/host-container-storage: no such file or directory

Additionally, from the error logs can not find /run/host-container-storage, the workaround is when running podman, add -v /run/host-container-storage:/run/host-container-storage.

Vorherrschende Sprache
Rust
Sterne
142
Forks
40
Ø Merge
2 T. 22 Std.
Gemergte PRs (30 T.)
10

Entwicklungsumgebung

In Codespaces öffnen

Startet den Dev-Container des Projekts im Browser, mit Ihrem eigenen GitHub-Konto.

  • Kein Dockerfile und keine Docker-Compose-Datei
  • Keine Pull-Request-Vorlage
  • Kein Beitragsleitfaden

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus bootc-dev/bcvk

Alle Issues in bootc-dev/bcvk

Ähnliche Issues

Weitere Issues zu Rust

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.