From 791a81a30e65e93bd6b10ec7ec983ec8fe79a727 Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Sun, 5 Jun 2022 16:58:32 +0200 Subject: [PATCH] build-cockpit-toolbox: Support running podman Use flatpak-spawn to divert to podman on the host. --- build-cockpit-toolbox | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/build-cockpit-toolbox b/build-cockpit-toolbox index d8ac387..7998e8f 100755 --- a/build-cockpit-toolbox +++ b/build-cockpit-toolbox @@ -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 -- 2.39.5