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:
@@ -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/
|
||||
|
||||
Reference in New Issue
Block a user