]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-disk-activate: specify full path for blkid, initctl, service
authorSage Weil <sage@inktank.com>
Wed, 13 Feb 2013 23:49:42 +0000 (15:49 -0800)
committerSage Weil <sage@inktank.com>
Thu, 14 Feb 2013 06:18:59 +0000 (22:18 -0800)
/sbin apparently isn't in the path when udev runs us.

Signed-off-by: Sage Weil <sage@inktank.com>
src/ceph-disk-activate

index 18c33ef3d3d29a08738bb4f2b3944270324e3a25..13c83cec864136132117c9e519078c2111633b74 100755 (executable)
@@ -297,7 +297,7 @@ def start_daemon(
     if os.path.exists(os.path.join(path,'upstart')):
         subprocess.check_call(
             args=[
-                'initctl',
+                '/sbin/initctl',
                 # use emit, not start, because start would fail if the
                 # instance was already running
                 'emit',
@@ -314,7 +314,7 @@ def start_daemon(
     elif os.path.exists(os.path.join(path, 'sysvinit')):
         subprocess.check_call(
             args=[
-                'service',
+                '/usr/sbin/service',
                 'ceph',
                 'start',
                 'osd.{osd_id}'.format(osd_id=osd_id),
@@ -331,7 +331,7 @@ def detect_fstype(
     ):
     fstype = _check_output(
         args=[
-            'blkid',
+            '/sbin/blkid',
             # we don't want stale cached results
             '-p',
             '-s', 'TYPE',