From a7eea2d9d7c2020957019bf2d09fd92b82132996 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dav=C3=AD=C3=B0=20Steinn=20Geirsson?= Date: Sat, 30 Aug 2025 01:19:17 +0000 Subject: [PATCH] ceph: Use full path to mount(8) when remounting FUSE fs Before, using ceph-fuse in a systemd unit, it failed to remount and exited. ``` ceph-fuse[74399]: -257> 2025-08-30T01:19:31.420+0000 7f0fce7f46c0 -1 client.740614836 failed to remount (to trim kernel dentries): return code = 127 ceph-fuse[74399]: -256> 2025-08-30T01:19:31.420+0000 7f0fce7f46c0 -1 client.740614836 failed to remount for kernel dentry trimming; quitting! ``` --- pkgs/tools/filesystems/ceph/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/tools/filesystems/ceph/default.nix b/pkgs/tools/filesystems/ceph/default.nix index 944a97bff76e..11e7fff175a6 100644 --- a/pkgs/tools/filesystems/ceph/default.nix +++ b/pkgs/tools/filesystems/ceph/default.nix @@ -498,6 +498,11 @@ rec { --replace "/sbin/modprobe" "${kmod}/bin/modprobe" \ --replace "/bin/grep" "${gnugrep}/bin/grep" + # Patch remount to use full path to mount(8), otherwise ceph-fuse fails when run + # from a systemd unit for example. + substituteInPlace src/client/fuse_ll.cc \ + --replace-fail "mount -i -o remount" "${util-linux}/bin/mount -i -o remount" + # The install target needs to be in PYTHONPATH for "*.pth support" check to succeed export PYTHONPATH=$PYTHONPATH:$lib/${sitePackages}:$out/${sitePackages} patchShebangs src/