mirror of https://github.com/k3s-io/k3s
Merge pull request #5352 from zmerlynn/conditional_disk
Don't always run mount-master-pdpull/6/head
commit
bc655681fe
|
@ -151,6 +151,10 @@ stop-salt-minion() {
|
|||
# formats an unformatted disk, and mkdir -p will leave a directory be if it
|
||||
# already exists.
|
||||
mount-master-pd() {
|
||||
# TODO(zmerlynn): GKE is still lagging in master-pd creation
|
||||
if [[ ! -e /dev/disk/by-id/google-master-pd ]]; then
|
||||
return
|
||||
fi
|
||||
device_info=$(ls -l /dev/disk/by-id/google-master-pd)
|
||||
relative_path=${device_info##* }
|
||||
device_path="/dev/disk/by-id/${relative_path}"
|
||||
|
|
Loading…
Reference in New Issue