Have to match on ceph for a field - not optimal, but works for the moment
This commit is contained in:
parent
f03b234379
commit
58bc480490
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@ set -x
|
||||||
|
|
||||||
tmpdir=$(mktemp -d)
|
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"
|
mount "$dev" "$tmpdir"
|
||||||
id=$(cat "${tmpdir}/whoami")
|
id=$(cat "${tmpdir}/whoami")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue