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!
```
This commit is contained in:
Davíð Steinn Geirsson
2025-08-30 22:58:14 +00:00
parent b1ecbfe494
commit a7eea2d9d7
+5
View File
@@ -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/