Skip to content

libpriv/kernel: Pass through DRACUT_NO_XATTR when running dracut#5397

Merged
cgwalters merged 1 commit intocoreos:mainfrom
jlebon:pr/no-xattr
May 26, 2025
Merged

libpriv/kernel: Pass through DRACUT_NO_XATTR when running dracut#5397
cgwalters merged 1 commit intocoreos:mainfrom
jlebon:pr/no-xattr

Conversation

@jlebon
Copy link
Member

@jlebon jlebon commented May 26, 2025

Since f4aecb9 ("rust/bwrap: don't swallow STDERR when running commands"), we now have the stderr from dracut, which reveals that it spews lots of warnings about being unable to copy xattrs when running from an rpm-ostree compose rootfs.

I think this comes from the user.ostreemeta xattr which hasn't been stripped yet.

It'd be better anyway to do this stripping within the rpm-ostree core I think, but for now it's actually trivial to work around this by setting DRACUT_NO_XATTR.

I'm pretty sure we could set this unconditionally, but out of an abundance of caution, we only do this for now from the rpm-ostree compose rootfs path where we know we want this.

Fixes: https://gitlab.com/fedora/bootc/tracker/-/issues/66

Since f4aecb9 ("rust/bwrap: don't swallow STDERR when running
commands"), we now have the stderr from dracut, which reveals that it
spews lots of warnings about being unable to copy xattrs when running
from an `rpm-ostree compose rootfs`.

I think this comes from the `user.ostreemeta` xattr which hasn't been
stripped yet.

It'd be better anyway to do this stripping within the rpm-ostree core I
think, but for now it's actually trivial to work around this by setting
`DRACUT_NO_XATTR`.

I'm pretty sure we could set this unconditionally, but out of an
abundance of caution, we only do this for now from the
`rpm-ostree compose rootfs` path where we know we want this.

Fixes: https://gitlab.com/fedora/bootc/tracker/-/issues/66
@jlebon
Copy link
Member Author

jlebon commented May 26, 2025

/test fcos-e2e

@openshift-ci
Copy link

openshift-ci bot commented May 26, 2025

@jlebon: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/fcos-e2e a5db7f5 link true /test fcos-e2e
ci/prow/kola-upgrade a5db7f5 link true /test kola-upgrade

Full PR test history. Your PR dashboard.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

= g_strdup_printf ("#!/usr/bin/bash\n"
"set -euo pipefail\n"
"export PATH=%s:${PATH}\n"
"export PATH=%s:${PATH} %s%s\n"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This isn't new but I think it'd be perhaps conceptually cleaner to use bwrap --setenv below?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cgwalters cgwalters merged commit a8f755f into coreos:main May 26, 2025
30 of 35 checks passed
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

Successfully merging this pull request may close these issues.

2 participants