From abd8714f8d6bea13e4039d3c40841226549e9c94 Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Mon, 16 Jan 2023 12:07:40 +0100 Subject: [PATCH] build-cockpit-toolbox: Forward more commands to the host --- build-cockpit-toolbox | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/build-cockpit-toolbox b/build-cockpit-toolbox index 4ddd582..aab0d32 100755 --- a/build-cockpit-toolbox +++ b/build-cockpit-toolbox @@ -23,7 +23,9 @@ sudo dnf install -y ansible man-db man-pages moreutils fd-find ripgrep gh \ calibre qt5-qtwayland \ 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 +# commands to forward to the host +for cmd in podman toolbox nmcli eog evince; do + printf "flatpak-spawn --host $cmd \42\$@\42\n" | sudo tee /usr/local/bin/$cmd >/dev/null + sudo chmod a+x /usr/local/bin/$cmd +done ' -- 2.39.2