File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -100,6 +100,21 @@ esac
100100# shellcheck disable=SC2154
101101printf " [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+
103118if (( 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.
You can’t perform that action at this time.
0 commit comments