juergbi commented on issue #1660:
URL: https://github.com/apache/buildstream/issues/1660#issuecomment-1172875002
It currently does return "Operation not supported" as per the error message
in the first comment.
If I modify buildbox-fuse to not return the internal `user.checksum.sha256`
in listxattr, I get past that error, although I get a new one:
```
error: ioctl(EXT2_IOC_GETFLAGS): Function not implemented
Command 'ostree admin deploy --os="freedesktop-sdk" \
--sysroot="/buildstream/freedesktop-sdk/vm/minimal-ostree/image.bst/sysroot"
freedesktop-sdk-22.08beta-x86_64 \
--karg="rw" --karg=console=ttyS0' failed with exitcode 1
```
From a quick glance at ostree code I think this is the relevant code with
regards to xattrs:
```c
xattrs = ostree_fs_get_all_xattrs (src_fd, cancellable, error);
if (!xattrs)
return FALSE;
if (!glnx_fd_set_all_xattrs (tmp_dest.fd, xattrs, cancellable, error))
return FALSE;
```
And I don't see any error being special cased in libglnx
`glnx_fd_set_all_xattrs()`:
```c
if (TEMP_FAILURE_RETRY (fsetxattr (fd, (char*)name, (char*)value_data,
value_len, 0)) < 0)
return glnx_throw_errno_prefix (error, "Setting xattrs: fsetxattr(%s)",
name);
```
Dropping `user.checksum.sha256` from buildbox-fuse listxattr may be an
acceptable solution.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]