ublue-os / bluefin

The next generation Linux workstation, designed for reliability, performance, and sustainability.
https://projectbluefin.io
Apache License 2.0
1.25k stars 163 forks source link

`just run-iso` fails with an invalid source name #1900

Closed castrojo closed 2 weeks ago

castrojo commented 2 weeks ago

Trying to run an ISO locally:

2024-11-06 21:54:01,637: anaconda args = ['--xz', '--install', '/.buildstamp', '--no-early-microcode', '--add', 'fips', '--add', 'anaconda pollcdrom qemu qemu-net']
2024-11-06 21:54:01,661: rebuilding boot/initramfs-6.11.5-300.fc41.x86_64.img
2024-11-06 21:54:30,180: populating output tree and building boot images
2024-11-06 21:54:30,193: running x86.tmpl
2024-11-06 21:54:37,626: writing .treeinfo file
make -w -C container bluefin-latest
make[1]: Entering directory '/build-container-installer/container'
skopeo copy containers-storage:localhost/bluefin:latest oci:bluefin-latest
time="2024-11-06T21:54:49Z" level=fatal msg="Invalid source name containers-storage:localhost/bluefin:latest: open /var/lib/containers/storage/storage.lock: read-only file system"
make[1]: *** [Makefile:2: bluefin-latest] Error 1
make[1]: Leaving directory '/build-container-installer/container'
make: *** [Makefile:148: container/bluefin-latest] Error 2
error: Recipe `sudoif` failed with exit code 1
error: Recipe `build-iso` failed with exit code 1
error: Recipe `run-iso` failed with exit code 1
m2Giles commented 2 weeks ago

https://github.com/ublue-os/bluefin/pull/1904

Justfile: mounted /var/lib/containers/storage read-only; however, lockfile is written to directory while skopeo is used to pull. Mounting the directory was chosen over requiring the rootful podman socket to be running.

Workflow: Correct variable expansion.