Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fedora iot-bootable-container requires a bootc/install config #623

Closed
achilleas-k opened this issue Apr 22, 2024 · 3 comments
Closed

Fedora iot-bootable-container requires a bootc/install config #623

achilleas-k opened this issue Apr 22, 2024 · 3 comments

Comments

@achilleas-k
Copy link
Member

achilleas-k commented Apr 22, 2024

The new bootc-image-builder now uses bootc install to-filesystem, which requires the container define a config for the tool to read.

ERROR Installing to filesystem: Loading configuration: No bootc/install config found; this operating system must define a default configuration to be installable
Traceback (most recent call last):
  File "/run/osbuild/bin/org.osbuild.bootc.install-to-filesystem", line 53, in <module>
    r = main(args["options"], args["inputs"], args["paths"])
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/run/osbuild/bin/org.osbuild.bootc.install-to-filesystem", line 48, in main
    subprocess.run(pargs, env=env, check=True)
  File "/usr/lib64/python3.12/subprocess.py", line 571, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['bootc', 'install', 'to-filesystem', '--source-imgref', 'containers-storage:[overlay@/run/osbuild/containers/storage+/run/containers/storage]401ce5fe69f79274dff5db0acc95f23859b593d1f1187a46961bc19b40bdda74', '--skip-fetch-check', '--generic-image', '--karg', 'rw', '--karg', 'console=tty0', '--karg', 'console=ttyS0', '--target-imgref', 'registry.gitlab.com/redhat/services/products/image-builder/ci/images/iot-bootable-container:fedora-39-aarch64-4b3675c1ce01f900bfcadaa5d4cf9a021c063b024ad728b0631f64f048437882', '/run/osbuild/mounts']' returned non-zero exit status 1.

For example, the quay.io/centos-bootc/fedora-bootc:eln container contains the file /usr/lib/bootc/install/20-rhel.toml with the following content:

root-fs-type = "xfs"

Refs:

@cgwalters
Copy link
Contributor

This will be fixed by containers/bootc#480

@achilleas-k
Copy link
Member Author

achilleas-k commented Apr 22, 2024

Thanks. Still, it'd be nice to be able to write a config for the bootable containers we build.
osbuild/osbuild#1747

@achilleas-k
Copy link
Member Author

Fixed by #636

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants