View previous topic :: View next topic |
Author |
Message |
DeIM Guru
Joined: 11 Apr 2006 Posts: 442
|
Posted: Fri Jul 19, 2024 1:30 pm Post subject: [sol] (bcachefs) / and (tmpfs) /var/tmp/portage emerges fail |
|
|
I have bchachefs as root fs with compression and compile /var/tmp/portage on tmpfs.
Some packages fails to install with:
Code: | Failed to copy file: _parsed_options=Namespace(group=-1, owner=-1, mode=420, preserve_timestamps=False), source=b'/var/tmp/portage/app-misc/screen-4.9.1-r1/files/screenrc', dest_dir=b'/var/tmp/portage/app-misc/screen-4.9.1-r1/image/etc'
Traceback (most recent call last):
File "/usr/lib/portage/python3.12/doins.py", line 200, in run
movefile._copyxattr(source, dest, exclude=self._xattr_exclude)
File "/usr/lib/python3.12/site-packages/portage/util/movefile.py", line 99, in _copyxattr
raise OperationNotSupported(
portage.exception.OperationNotSupported: Filesystem containing file '/var/tmp/portage/app-misc/screen-4.9.1-r1/image/etc/screenrc' does not support extended attribute 'bcachefs_effective.compression' |
When I umount tmpfs it works well.
Last edited by DeIM on Wed Oct 02, 2024 9:22 am; edited 1 time in total |
|
Back to top |
|
|
sublogic Apprentice
Joined: 21 Mar 2022 Posts: 269 Location: Pennsylvania, USA
|
Posted: Sat Jul 20, 2024 1:04 am Post subject: |
|
|
I can only offer guesses, but Code: | portage.exception.OperationNotSupported: Filesystem containing file '/var/tmp/portage/app-misc/screen-4.9.1-r1/image/etc/screenrc' does not support extended attribute 'bcachefs_effective.compression' | your tmpfs does not support one of your bcachefs' attributes. Why portage is trying to set that attribute when copying from tmpfs to tmpfs is beyond me.
DeIM wrote: | When I umount tmpfs it works well. | Because now you are writing to bcachefs. |
|
Back to top |
|
|
Ionen Developer
Joined: 06 Dec 2018 Posts: 2849
|
Posted: Sat Jul 20, 2024 2:37 am Post subject: |
|
|
sublogic wrote: | I can only offer guesses, but Code: | portage.exception.OperationNotSupported: Filesystem containing file '/var/tmp/portage/app-misc/screen-4.9.1-r1/image/etc/screenrc' does not support extended attribute 'bcachefs_effective.compression' | your tmpfs does not support one of your bcachefs' attributes. Why portage is trying to set that attribute when copying from tmpfs to tmpfs is beyond me. | It's not from tmpfs to tmpfs, it's from bcachefs to tmpfs, the file it's copying is: /var/tmp/portage/app-misc/screen-4.9.1-r1/files/screenrc
And "files/" is going to be a symlink to /var/db/repos/gentoo/app-misc/screen/files.
That aside, haven't tried much but I can't reproduce in my bchacefs VM (test VM I happened to try bcachefs for rootfs in before) if I switch portage's tmpdir to use tmpfs as-is, probably need to set the xattr (I do have compression enabled but filesystem-wide rather than per-directory/file, don't know bcachefs well but assume the latter uses xattrs).
Edit: Presumably, that would solve this https://github.com/gentoo/portage/pull/1346 (pointed out by sam on irc) |
|
Back to top |
|
|
Flow__ n00b
Joined: 10 Jul 2007 Posts: 26
|
Posted: Sat Jul 20, 2024 8:40 am Post subject: |
|
|
Note that setting
Code: |
PORTAGE_XATTR_EXCLUDE="${PORTAGE_XATTR_EXCLUDE} bachefs.* bcachefs_effective.*"
|
in /etc/portage/make.conf should also fix this, even without the changes of the PR applied. |
|
Back to top |
|
|
DeIM Guru
Joined: 11 Apr 2006 Posts: 442
|
Posted: Wed Oct 02, 2024 9:23 am Post subject: |
|
|
Flow__ wrote: | Note that setting
Code: |
PORTAGE_XATTR_EXCLUDE="${PORTAGE_XATTR_EXCLUDE} bachefs.* bcachefs_effective.*"
|
in /etc/portage/make.conf should also fix this, even without the changes of the PR applied. |
This works well for me |
|
Back to top |
|
|
|