mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 14:37:00 +00:00
Update cluster/gce/gci/configure-helper.sh
Co-authored-by: Aaron Crickenberger <spiffxp@google.com>
This commit is contained in:
parent
0c899b2bc2
commit
6e8504003b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user