From 19487355f35be03db1a02a872c36baba20045104 Mon Sep 17 00:00:00 2001 From: Samuli Piippo Date: Fri, 10 Oct 2025 13:26:12 +0300 Subject: [PATCH] Provisioning: fix use of NFS4 mounts with bitbake 'cp -p' attempts to copy NFSv4 ACL extended attributes when preserving permissions. On filesystems that do not support these xattrs (e.g., ext4), this results in `Operation not supported` and causes 'cp' to fail. Add explicit skip entries for these attributes in /etc/xattr.conf so libattr ignores them during copy operations. This is needed to get bitbake builds to work when using download cache from NFS4 mount. Change-Id: I3dabb065c4d9928121fe14d0fdc896c7415bdcb9 Reviewed-by: Toni Saario --- .../03-fix-bitbake-nfs4-acl.sh | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 coin/provisioning/qtci-linux-Ubuntu-24.04-x86_64/03-fix-bitbake-nfs4-acl.sh diff --git a/coin/provisioning/qtci-linux-Ubuntu-24.04-x86_64/03-fix-bitbake-nfs4-acl.sh b/coin/provisioning/qtci-linux-Ubuntu-24.04-x86_64/03-fix-bitbake-nfs4-acl.sh new file mode 100644 index 00000000..92de9816 --- /dev/null +++ b/coin/provisioning/qtci-linux-Ubuntu-24.04-x86_64/03-fix-bitbake-nfs4-acl.sh @@ -0,0 +1,5 @@ +#!/usr/bin/env bash +# Copyright (C) 2024 The Qt Company Ltd. +# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +sudo sed -i -e '/nfs4/s/permissions/skip/' /etc/xattr.conf