Match OSD in partition name

This commit is contained in:
Nico Schottelius 2018-02-27 00:08:17 +01:00
parent f81e855131
commit 939a0f5b10

View file

@ -7,7 +7,7 @@ set -x
tmpdir=$(mktemp -d) tmpdir=$(mktemp -d)
for dev in $(fdisk -l | awk '$6 ~/Ceph/ { print $1 }'); do for dev in $(fdisk -l | awk '$6 ~/Ceph OSD/ { print $1 }'); do
mount "$dev" "$tmpdir" mount "$dev" "$tmpdir"
id=$(cat "${tmpdir}/whoami") id=$(cat "${tmpdir}/whoami")