Update cluster/gce/gci/configure-helper.sh

Co-authored-by: Aaron Crickenberger <spiffxp@google.com>
This commit is contained in:
Joakim Roubert 2020-05-16 12:50:08 +02:00 committed by Joakim Roubert
parent 6e8504003b
commit d66456fe01

View File

@ -389,7 +389,7 @@ function ensure-local-ssds() {
for ssd in /dev/disk/by-id/google-local-ssd-*; do
if [ -e "${ssd}" ]; then
local devicenum
devicenum=$(echo "${ssd}" | sed -e 's/\/dev\/disk\/by-id\/google-local-ssd-\([0-9]*\)/\1/')
devicenum=$(echo "${ssd}" | sed -e 's@/dev/disk/by-id/google-local-ssd-\([0-9]*\)@\1@')
if [[ "${i}" -lt "${scsiblocknum}" ]]; then
mount-ext "${ssd}" "${devicenum}" "scsi" "block"
else