modprobe not found by mount.ceph
- mount cephsrv:/ /mount/point
sh: modprobe: command not found
mount.ceph: modprobe failed, exit status 127
modprobe is in /sbin, but mount, being suid, restricts the PATH it passes down to mount.ceph.
Nevertheless, mount succeeds, presumably because either the mount binary or the mount system call issued by mount.ceph gets the module loaded.
I suppose delaying modprobe() after an initial mount attempt would silence the error without any negative impact. Redirecting the [error] output to the bit bucket would be a reasonable alternative; presumably dropping the modprobe altogether might do as well.
The above is on BLAG/x86_64, Fedora-based. On gNewSense/mipsel (Debian-based), modprobe runs successfully.