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:49:52 +02:00 committed by Joakim Roubert
parent 0c899b2bc2
commit 6e8504003b

View File

@ -420,7 +420,7 @@ function ensure-local-ssds() {
# the existing Google images does not expose NVMe devices in /dev/disk/by-id
if [[ $(udevadm info --query=property --name="${ssd}" | grep DEVTYPE | sed "s/DEVTYPE=//") == "disk" ]]; then
local devicenum
devicenum=$(echo "${ssd}" | sed -e 's/\/dev\/nvme0n\([0-9]*\)/\1/')
devicenum=$(echo "${ssd}" | sed -e 's@/dev/nvme0n\([0-9]*\)@\1@')
if [[ "${i}" -lt "${nvmeblocknum}" ]]; then
mount-ext "${ssd}" "${devicenum}" "nvme" "block"
else