Skip to content

bootc container ukify fails with Operation not supported #1977

Closed

Description

@Johan-Liebert1
+ bootc container ukify --rootfs /run/target --karg enforcing=0 -- --signtool sbsign --secureboot-private-key /run/secrets/secureboot_key --secureboot-certificate /run/secrets/secureboot_cert
 --measure --json pretty --output /out/6.12.0-192.el10.x86_64.efi
error: Building UKI: Operation not supported (os error 95)
Error: building at STEP "RUN --network=none --mount=type=tmpfs,target=/run --mount=type=tmpfs,target=/tmp --mount=type=secret,id=secureboot_key --mount=type=secret,id=secureboot_cert --mount=
type=bind,from=packaging,src=/,target=/run/packaging --mount=type=bind,from=base-penultimate,src=/,target=/run/target <<EORUN": while running runtime: exit status 1

This occurs when building the sealed variant for testing with just variant=composefs-sealeduki-sdboot test-tmt

Activity

  1. jeckersb commented on Feb 4, 2026

    @jeckersb
    Collaborator

    I put up #1980 as a first step to gather more context, try that and then once it breaks we can keep iterating and chasing how it's getting down into read_directory as you posted above. Then at the very least we'll have some useful context additions to merge so the next time we hit something in the same area we'll be better off :)

  2. Johan-Liebert1 commented on Feb 5, 2026

    @Johan-Liebert1
    MemberAuthor

    Seems like an issue with creating a tempfile

    error: Building UKI: Computing composefs digest: Reading container root: Reading filtered filesystem from /run/target: Reading filesystem from /run/target: Reading directory /run/target: Reading inode fedora-extra.txt: Reading leaf fedora-extra.txt: Reading leaf content: Ensuring object exists in repository: Storing object data: Storing object with ID sha512:a9df998fc10b16c88d675
    a7eb8f45020ff6dae908e249a5746ab6882cc5b31d460d25d8b44fc5a40b4c163e3e91bb2ff93ab74a5c9ffefdb57ce9870848ebe82: Creating tempfile in object subdirectory: Ok("/var/tmp/.tmpKKbgJw/repo/objects"): 
    

    Volume mounting /var/tmp fixes this

  3. travier commented on Mar 30, 2026

    @travier
    Contributor

    I think this happens due to fuse-overlayfs as it does not happen for me as root using overlay.

    + bootc container ukify --rootfs /run/target -- --measure --json pretty --output /boot/EFI/Linux/6.19.9-300.fc44.x86_64.efi --signtool sbsign --secureboot-private-key /run/secrets/secureboot_key --secureboot-certificate /run/secrets/secureboot_cert
    error: Building UKI: Computing composefs digest: Reading container root: Reading filtered filesystem from /run/target: Reading filesystem from /run/target: Reading directory /run/target: Reading inode etc: Reading directory etc: Reading inode DIR_COLORS: Reading leaf DIR_COLORS: Reading leaf content: Ensuring object exists in repository: Storing object with ID sha512:c7713425b5a76c05418de56f344d27f836038bc0761c7776b240bfc691f4f97bca43eebdd22532fdfe15c337b29994f70e55cc4ee6feb86a1e122c4c680ea446: Creating tempfile in object subdirectory: Operation not supported (os error 95)
    

    Adding --mount=type=tmpfs,target=/var/tmp worked around it indeed.

  4. cgwalters commented on Mar 30, 2026

    @cgwalters
    Member
  5. jeckersb commented on Apr 28, 2026

    @jeckersb
    Collaborator

    I think this can probably be closed now that composefs/composefs-rs#276 is done?

  6. travier commented on May 4, 2026

    @travier
    Contributor

    We might still need the crate to be updated here?

  7. rlees85 commented on Jul 22, 2026

    @rlees85

    Bit confused here, I'm using bootc 1.16.4 which should have all the fixes above but still failing on Gitlab CI:

    DEBUG argv0="bootc"
    error: Building UKI: Computing composefs digest: Reading container root: Reading container root: Ensuring object from file descriptor: Ensuring object from reader: Creating object tmpfile: Opening temp file in objects directory: Operation not supported (os error 95)
    subprocess exited with status 1
    subprocess exited with status 1
    

    Works fine locally.

    Using the /var/tmp (tmpfs) workaround just causes an out of space error (whilst resolving the above).

    Edit:

    Just to add some more information....

    I am building with Podman.
    On Gitlab CI I am setting TMPDIR to a location that is not backed by overlayfs (/var/tmp is on Gitlab), which I had to do to fix some other weird issues with Chunkah. The Podman TMPDIR, where any build layers/etc should be running from, is just a normal ext4 filesystem.

    Edit again:

    I've opened a new issue as this is closed. The new issue contains a workaround for Gitlab CI specifically.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions