build-cockpit-toolbox: Support running podman
[bin.git] / build-cockpit-toolbox
index d8ac387e523d9ac6c5d09a609d5cd9868f947416..7998e8fc93dbcc3001058d8753af0b1e5032579e 100755 (executable)
@@ -22,7 +22,11 @@ sudo dnf install -y ansible man-pages moreutils gh \
     /usr/bin/scanimage /usr/bin/pngquant /usr/bin/convert \
     kpcli \
     calibre qt5-qtwayland \
-    chromium dbus-daemon tmt tmt-provision-virtual flatpak-builder
+    chromium dbus-daemon tmt tmt-provision-virtual flatpak-builder flatpak-spawn
+
+# run podman in toolbox
+printf "flatpak-spawn --host podman \42\$@\42\n" | sudo tee /usr/local/bin/podman >/dev/null
+sudo chmod a+x /usr/local/bin/podman
 
 # debugging cockpit crashes
 sudo dnf debuginfo-install -y glib2 glibc libssh gnutls