summaryrefslogtreecommitdiffstats
path: root/udev
diff options
context:
space:
mode:
authorAlexandre Marangone <alexandre.marangone@inktank.com>2013-04-16 00:57:00 +0200
committerAlexandre Marangone <alexandre.marangone@inktank.com>2013-04-16 00:57:00 +0200
commit785b25f53dc7f8035eeba2aae8a196e3b102d930 (patch)
treea5c243ae60a3750b30d6e2189b6ea4084c3e5c94 /udev
parentFix radosgw upstart job (diff)
downloadceph-785b25f53dc7f8035eeba2aae8a196e3b102d930.tar.xz
ceph-785b25f53dc7f8035eeba2aae8a196e3b102d930.zip
Fix: use absolute path with udev
Avoids the following: udevd[61613]: failed to execute '/lib/udev/bash' 'bash -c 'while [ ! -e /dev/mapper/.... Signed-off-by: Alexandre Marangone <alexandre.marangone@inktank.com>
Diffstat (limited to 'udev')
-rw-r--r--udev/95-ceph-osd.rules2
1 files changed, 1 insertions, 1 deletions
diff --git a/udev/95-ceph-osd.rules b/udev/95-ceph-osd.rules
index a6fcaea8823..77e6ef37c5d 100644
--- a/udev/95-ceph-osd.rules
+++ b/udev/95-ceph-osd.rules
@@ -17,5 +17,5 @@ ACTION=="add" SUBSYSTEM=="block", \
ENV{DEVTYPE}=="partition", \
ENV{ID_PART_ENTRY_TYPE}=="4fbd7e29-9d25-41b8-afd0-5ec00ceff05d", \
RUN+="/sbin/cryptsetup --key-file /etc/ceph/dmcrypt-keys/$env{ID_PART_ENTRY_UUID} --key-size 256 create $env{ID_PART_ENTRY_UUID} /dev/$name", \
- RUN+="bash -c 'while [ ! -e /dev/mapper/$env{ID_PART_ENTRY_UUID} ];do sleep 1; done'", \
+ RUN+="/bin/bash -c 'while [ ! -e /dev/mapper/$env{ID_PART_ENTRY_UUID} ];do sleep 1; done'", \
RUN+="/usr/sbin/ceph-disk-activate --mount /dev/mapper/$env{ID_PART_ENTRY_UUID}"