Bug #1188
closedmodprobe not found by mount.ceph
Description
- 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.
Updated by Sage Weil almost 13 years ago
- Target version set to v0.30
Does the mount.ceph is the modprobe branch work okay? It just specifies /sbin/modprobe.. which is hopefully always the case?
Updated by Greg Farnum almost 13 years ago
- Status changed from New to Resolved
- Assignee set to Sage Weil
Looks like this is done!