Skip to content

Commit

Permalink
fix: try disabling volatile mount
Browse files Browse the repository at this point in the history
  • Loading branch information
AidanAbd committed Dec 11, 2024
1 parent ad7496d commit 57adf65
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions sysbox-eks.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -486,4 +486,20 @@ build {
"sudo dasel put string --parser json --file /etc/kubernetes/kubelet/kubelet-config.json --selector 'memorySwap.swapBehavior' 'UnlimitedSwap'",
]
}

provisioner "shell" {
inline_shebang = "/usr/bin/env bash"
inline = [
"set -o errexit -o nounset -o pipefail",

"echo '>>> Disabling volatile overlayfs feature in CRI-O storage options'",
"sudo mkdir -p /etc/containers/",
"sudo touch /etc/containers/storage.conf",
"sudo dasel put bool -f /etc/containers/storage.conf -s 'storage.options.overlay.disable_volatile' true --parser toml",


"echo '>>> Restarting CRI-O service to apply storage configuration changes'",
"sudo systemctl restart crio",
]
}
}

0 comments on commit 57adf65

Please sign in to comment.