Project

General

Profile

Actions

Bug #1188

closed

modprobe not found by mount.ceph

Added by Alexandre Oliva almost 13 years ago. Updated almost 13 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
% Done:

0%

Source:
Tags:
Backport:
Regression:
Severity:
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

  1. 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.

Actions

Also available in: Atom PDF