Create swapfile only on nodepool nodes
TrivialFix Change-Id: I73d208d2a52c018ad6027f811c6b3a2eee802015
This commit is contained in:
parent
5380724930
commit
9748226688
@ -4,7 +4,7 @@ set -o xtrace
|
||||
set -o errexit
|
||||
|
||||
function setup_disk {
|
||||
if [ ! -f /swapfile ]; then
|
||||
if [[ -f /etc/nodepool/provider && ! -f /swapfile ]]; then
|
||||
sudo swapoff -a
|
||||
sudo dd if=/dev/zero of=/swapfile bs=1M count=4096
|
||||
sudo chmod 0600 /swapfile
|
||||
|
@ -4,7 +4,7 @@ set -o xtrace
|
||||
set -o errexit
|
||||
|
||||
function setup_disk {
|
||||
if [ ! -f /swapfile ]; then
|
||||
if [[ -f /etc/nodepool/provider && ! -f /swapfile ]]; then
|
||||
sudo swapoff -a
|
||||
sudo dd if=/dev/zero of=/swapfile bs=1M count=4096
|
||||
sudo chmod 0600 /swapfile
|
||||
|
Loading…
x
Reference in New Issue
Block a user