]> piware.de Git - bin.git/commitdiff
build-cockpit-toolbox: Forward more commands to the host
authorMartin Pitt <martin@piware.de>
Mon, 16 Jan 2023 11:07:40 +0000 (12:07 +0100)
committerMartin Pitt <martin@piware.de>
Mon, 16 Jan 2023 11:07:40 +0000 (12:07 +0100)
build-cockpit-toolbox

index 4ddd582cd88ec406e30e75d29d207c0788e93b7e..aab0d3285eb053f07443d57401943e24cbe4e3ca 100755 (executable)
@@ -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
 '