Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
/etc/portage on NFS : cp -p : operation not permitted
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
xaviermiller
Bodhisattva
Bodhisattva


Joined: 23 Jul 2004
Posts: 8708
Location: ~Brussels - Belgique

PostPosted: Mon May 15, 2023 7:32 am    Post subject: /etc/portage on NFS : cp -p : operation not permitted Reply with quote

Hi!

On my configurations, I set /etc/portage in NFS in order to share the configuration between the build server and the hosts.

On the server:
/etc/exports:
/export/nas *(rw,no_subtree_check,no_root_squash)

on the client:
/etc/fstab:
 servername:/nas /data/nas nfs4 _netdev,rw 0 0


I recently resetted the FEATURES variable in /etc/portage/make.conf to a more default config (the settings were all different on all configs, because of history) to
Code:
FEATURES="candy sandbox parallel-fetch -distcc -distcc-pump -binpkg-multi-instance"


since then, linux-firmware fails copying the savedconfig files from portage build dir to /etc/portage/savedconfig:
Code:
 * Checking existence of "/etc/portage/savedconfig/sys-kernel/linux-firmware-20230404" ...
 * Found "/etc/portage/savedconfig/sys-kernel/linux-firmware-20230404"
 * Building using saved configfile "/etc/portage/savedconfig/sys-kernel/linux-firmware-20230404"
cp: preserving permissions for ‘linux-firmware.conf’: Operation not supported
 * ERROR: sys-kernel/linux-firmware-20230404::gentoo failed (prepare phase):
 *   Failed to restore /etc/portage/savedconfig/sys-kernel/linux-firmware-20230404 to linux-firmware.conf
 *
 * Call stack:
 *     ebuild.sh, line  136:  Called src_prepare
 *   environment, line 2139:  Called restore_config 'linux-firmware.conf'
 *   environment, line 1926:  Called die
 * The specific snippet of code:
 *               cp -pPR "${found}" "$1" || die "Failed to restore ${found} to $1";
 *
 * If you need support, post the output of `emerge --info '=sys-kernel/linux-firmware-20230404::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sys-kernel/linux-firmware-20230404::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/sys-kernel/linux-firmware-20230404/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-kernel/linux-firmware-20230404/temp/environment'.
 * Working directory: '/var/tmp/portage/sys-kernel/linux-firmware-20230404/work/linux-firmware-20230404'
 * S: '/var/tmp/portage/sys-kernel/linux-firmware-20230404/work/linux-firmware-20230404'

>>> Failed to emerge sys-kernel/linux-firmware-20230404, Log file:


all files belong to portage:portage and user/group portage have the same UID/GID on server and client.

as user, I have no problem:
Code:
$ cp -pv hello_test /data/nas/xavier/temp/ ; ls -la hello_test /data/nas/xavier/temp/hello_test
'hello_test' -> '/data/nas/xavier/temp/hello_test'
-rw-r--r-- 1 xavier xavier 0 15 mai 08:40 /data/nas/xavier/temp/hello_test
-rw-r--r-- 1 xavier xavier 0 15 mai 08:40 hello_test


What is wrong with my config?
_________________
Kind regards,
Xavier Miller
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3879

PostPosted: Mon May 15, 2023 5:24 pm    Post subject: Reply with quote

Maybe add
no_all_squash
in /etc/exports.
You need idmapd.
Plz set it in
/etc/conf.d/nfs
and
/etc/conf.d/nfsclient.
Plz edit /etc/idmapd.conf to reflect your domain.
According to Arch this might not be enough
https://wiki.archlinux.org/title/NFS#Enabling_NFSv4_idmapping
_________________
:)
Back to top
View user's profile Send private message
xaviermiller
Bodhisattva
Bodhisattva


Joined: 23 Jul 2004
Posts: 8708
Location: ~Brussels - Belgique

PostPosted: Mon May 15, 2023 6:27 pm    Post subject: Reply with quote

Thanks!

I see idmapd is not configured/started.
I will take some time to configure and test it.

I'll come later back with the results/solution ;-)
_________________
Kind regards,
Xavier Miller
Back to top
View user's profile Send private message
xaviermiller
Bodhisattva
Bodhisattva


Joined: 23 Jul 2004
Posts: 8708
Location: ~Brussels - Belgique

PostPosted: Tue May 16, 2023 7:49 pm    Post subject: Reply with quote

I'm struggling... seems I will try to switch to NFS3 :roll:

EDIT: solved using NFS v3.
_________________
Kind regards,
Xavier Miller
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum