Skip to content

Commit 6db512d

Browse files
Merge pull request #18822 from flouthoc/debian-use-overlay
cirrus,ci: default to `overlay` if using `vfs`
2 parents 8107957 + 02432fc commit 6db512d

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

contrib/cirrus/setup_environment.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,21 @@ esac
100100
# shellcheck disable=SC2154
101101
printf "[engine]\ndatabase_backend=\"$CI_DESIRED_DATABASE\"\n" > /etc/containers/containers.conf.d/92-db.conf
102102

103+
# For debian envs pre-configure storage driver as overlay.
104+
# See: Discussion here https://github.com/containers/podman/pull/18510#discussion_r1189812306
105+
# for more details.
106+
# TODO: remove this once all CI VM have newer buildah version. (i.e where buildah
107+
# does not defaults to using `vfs` as storage driver)
108+
# shellcheck disable=SC2154
109+
if [[ "$OS_RELEASE_ID" == "debian" ]]; then
110+
conf=/etc/containers/storage.conf
111+
if [[ -e $conf ]]; then
112+
die "FATAL! INTERNAL ERROR! Cannot override $conf"
113+
fi
114+
msg "Overriding $conf, setting overlay (was: $buildah_storage)"
115+
printf '[storage]\ndriver = "overlay"\nrunroot = "/run/containers/storage"\ngraphroot = "/var/lib/containers/storage"\n' >$conf
116+
fi
117+
103118
if ((CONTAINER==0)); then # Not yet running inside a container
104119
# Discovered reemergence of BFQ scheduler bug in kernel 5.8.12-200
105120
# which causes a kernel panic when system is under heavy I/O load.

0 commit comments

Comments
 (0)