bootc icon indicating copy to clipboard operation
bootc copied to clipboard

Disable SELinux log messages

Open hrismarin opened this issue 1 year ago • 1 comments

(edited by @cgwalters )

Change bootc to use https://github.com/ostreedev/ostree/pull/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.

hrismarin avatar Feb 19 '25 15:02 hrismarin

There's some more investigation of this in https://issues.redhat.com/browse/RHEL-80150 TL;DR nothing we can do to actually fix it here, it's conceptually a selinux tooling bug.

But https://github.com/ostreedev/ostree/pull/3381 will allow us to easily quiet the log message spam, so repurposing this bug to track using that.

cgwalters avatar Feb 24 '25 14:02 cgwalters

Fixed by https://github.com/bootc-dev/bootc/pull/1328

cgwalters avatar May 28 '25 13:05 cgwalters