From 4e9430cc5633d0a5da94fa095c55028a7cde51cc Mon Sep 17 00:00:00 2001 From: Grant Slater Date: Tue, 16 Jun 2026 15:05:30 +0100 Subject: [PATCH] podman: reset if graphDriver is vfs --- cookbooks/podman/recipes/default.rb | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/cookbooks/podman/recipes/default.rb b/cookbooks/podman/recipes/default.rb index 33fd0409a..3ed2e697d 100644 --- a/cookbooks/podman/recipes/default.rb +++ b/cookbooks/podman/recipes/default.rb @@ -73,3 +73,12 @@ end service "podman-system-prune.timer" do action [:enable, :start] end + +# Reset graph driver if vfs which is very slow. overlay is the default on Debian 13 and later. +if platform?("debian") && node[:platform_version].to_i >= 13 + execute "podman-fix-graph-driver" do + command "podman system reset --force" + only_if "test $(podman info --format '{{json .Store}}' | jq -r .graphDriverName) = 'vfs'" + ignore_failure true + end +end -- 2.47.3