From a67b6105e025ac699071e6dacfb59a02b3a6896a Mon Sep 17 00:00:00 2001 From: Claudiu Belu Date: Mon, 5 Aug 2024 17:01:21 +0000 Subject: [PATCH] Updates the nfsplugin rock The nfsplugin executable currently fails because it has no /tmp folder. Additionally, it fails when it tries to open files in the mentioned folder, or when trying to listen to unix:///csi/csi.sock. --- nfsplugin/4.7.0/rockcraft.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/nfsplugin/4.7.0/rockcraft.yaml b/nfsplugin/4.7.0/rockcraft.yaml index ec9ac7d..9ddc6b7 100644 --- a/nfsplugin/4.7.0/rockcraft.yaml +++ b/nfsplugin/4.7.0/rockcraft.yaml @@ -11,7 +11,6 @@ version: 4.7.0 base: bare build-base: ubuntu@22.04 -run-user: _daemon_ platforms: amd64: @@ -58,3 +57,8 @@ parts: - ./cmd/nfsplugin organize: bin/nfsplugin: ./ + override-build: | + craftctl default + + # nfsplugin requires the /tmp directory. + mkdir -p "${CRAFT_PART_INSTALL}/tmp"