Skip to content

Disable SELinux log messages #1128

Open
@hrismarin

Description

@hrismarin

(edited by @cgwalters )

Change bootc to use ostreedev/ostree#3381 once the newer ostree is released.

Original bug follows


Describe the bug

When I switch from F41 to F42, the error line 1 error due to: Non-ASCII characters found is displayed.

Reproduction steps

  1. Create an ISO disk image using bootc-image-builder from the generic F41 base image without customizing the container image. Add only user, groups, password, and SSH key to the config.toml file.
  2. Boot and install the ISO image on a bare metal machine.
  3. Switch to F42 image.

Expected behavior

The system switches to F42 without displaying any errors.

Actual behavior

$ sudo bootc switch quay.io/fedora/fedora-bootc:42
layers already present: 0; layers needed: 65 (831.5 MB)
Fetched layers: 793.03 MiB in 4 minutes (3.70 MiB/s)
/proc/self/fd/25/usr/etc/selinux/targeted/contexts/files/file_contexts.bin:  line 1 error due to: Non-ASCII characters found
/proc/self/fd/25/usr/etc/selinux/targeted/contexts/files/file_contexts.homedirs.bin:  line 1 error due to: Non-ASCII characters found
⠒ Deploying
/proc/self/fd/20/usr/etc/selinux/targeted/contexts/files/file_contexts.bin:  line 1 error due to: Non-ASCII characters found
/proc/self/fd/20/usr/etc/selinux/targeted/contexts/files/file_contexts.homedirs.bin:  line 1 error due to: Non-ASCII characters found
⠈ Deploying
/proc/self/fd/20/etc/selinux/targeted/contexts/files/file_contexts.bin:  line 1 error due to: Non-ASCII characters found
/proc/self/fd/20/etc/selinux/targeted/contexts/files/file_contexts.homedirs.bin:  line 1 error due to: Non-ASCII characters found
  Deploying: done (6 seconds)
Pruned images: 1 (layers: 0, objsize: 0 bytes)
Queued for next boot: quay.io/fedora/fedora-bootc:42
  Version: 42.20250211.0
  Digest: sha256:8d4610492781f1129fe87f592e0c393ad0925291901630fed5e182063f4602e6

System details

$ sudo rpm-ostree status 
State: idle
Deployments:
● ostree-unverified-registry:quay.io/fedora/fedora-bootc:42
                   Digest: sha256:8d4610492781f1129fe87f592e0c393ad0925291901630fed5e182063f4602e6
                  Version: 42.20250211.0 (2025-02-11T14:37:38Z)

  ostree-unverified-registry:quay.io/fedora/fedora-bootc:41
                   Digest: sha256:0b760dec2707d297f10f512f150eeb6d96f0bb27da835b213a1178d0165984a0
                  Version: 41.20250218.0 (2025-02-18T12:09:17Z)
                   Pinned: yes

Additional information

Despite the errors displayed during the deployment, the system is functional.

Activity

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

    area/selinuxRelates to SELinuxenhancementNew feature or requesttriagedThis looks like a valid issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions