From 58bc4804904d25c346d89cfbeac6b21f52e7e0c5 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Sun, 4 Mar 2018 18:40:24 +0100 Subject: [PATCH] Have to match on ceph for a field - not optimal, but works for the moment --- ceph-osd-activate-all | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ceph-osd-activate-all b/ceph-osd-activate-all index 8c64dfb..1cfdab0 100755 --- a/ceph-osd-activate-all +++ b/ceph-osd-activate-all @@ -7,7 +7,7 @@ set -x tmpdir=$(mktemp -d) -for dev in $(fdisk -l | awk '$6 ~/Ceph OSD/ { print $1 }'); do +for dev in $(fdisk -l | awk '$6 ~/Ceph/ { print $1 }'); do mount "$dev" "$tmpdir" id=$(cat "${tmpdir}/whoami")