On 02/16/2016 12:27 PM, Giuseppe Scrivano wrote:
Dusty Mabe dusty@dustymabe.com writes:
I am getting an error when trying to rebase to the updates-testing ostree. It is a similar fsetxattr error we have seen in the past:
# Go to known reproducer starting point: -bash-4.3# rpm-ostree deploy 23.54 && reboot
# After reboot: -bash-4.3# rpm-ostree rebase fedora-atomic:fedora-atomic/f23/x86_64/testing/docker-host
Receiving objects: 92% (3773/4069) 859.0 kB/s 99.6 MB error: fsetxattr: Invalid argument
Can I get someone to confirm they can reproduce the issue and debug it? Should I open a bug?
yes, please file a bug.
Done. If you need to move it to a different component please do so.
https://bugzilla.redhat.com/show_bug.cgi?id=1309075
I can reproduce the issue and the problem seems to be that the /usr/libexec/rpm-ostreed file is not properly labeled. It must have the same label as as rpm-ostree:
bash-4.3# ls -Z -1 /usr/libexec/rpm-ostreed /usr/bin/rpm-ostree system_u:object_r:install_exec_t:s0 /usr/bin/rpm-ostree system_u:object_r:bin_t:s0 /usr/libexec/rpm-ostreed
Can you try something like:
# systemctl stop rpm-ostreed # cp /usr/libexec/rpm-ostreed /tmp # chcon system_u:object_r:install_exec_t:s0 /tmp/rpm-ostreed # /tmp/rpm-ostreed
And from another terminal execute the rpm-ostree rebase command.
Does it work for you as well?
Yep, that worked. I included the workaround in the BZ.