From 114d399ef88cb61453a519ccc5ba2937458b2479 Mon Sep 17 00:00:00 2001
From: Martin Pitt <martin@piware.de>
Date: Thu, 4 Mar 2021 06:54:50 +0100
Subject: [PATCH] build-*-toolbox: Ensure that container image is current

---
 build-cockpit-toolbox | 1 +
 build-debian-toolbox  | 1 +
 2 files changed, 2 insertions(+)

diff --git a/build-cockpit-toolbox b/build-cockpit-toolbox
index 75c7eae..5b8990c 100755
--- a/build-cockpit-toolbox
+++ b/build-cockpit-toolbox
@@ -3,6 +3,7 @@ set -eux
 NAME=cockpit
 
 toolbox rm --force $NAME || true
+podman pull quay.io/cockpit/tasks
 yes | toolbox create --image quay.io/cockpit/tasks -c $NAME
 
 # install some extra development and desktop tools
diff --git a/build-debian-toolbox b/build-debian-toolbox
index 861dc73..85b4cb3 100755
--- a/build-debian-toolbox
+++ b/build-debian-toolbox
@@ -5,6 +5,7 @@ RELEASE=${1:-sid}
 DISTRO=${2:-debian}
 
 toolbox rm -f $RELEASE || true
+podman pull docker.io/$DISTRO:$RELEASE
 toolbox -y create -c $RELEASE --image docker.io/$DISTRO:$RELEASE
 
 # can't do that with toolbox run yet, as we need to install sudo first
-- 
2.39.5