aboutsummaryrefslogtreecommitdiff
path: root/io.github.89luca89.distrobox/podman
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--io.github.89luca89.distrobox/podman8
1 files changed, 8 insertions, 0 deletions
diff --git a/io.github.89luca89.distrobox/podman b/io.github.89luca89.distrobox/podman
new file mode 100644
index 0000000..9e80f42
--- /dev/null
+++ b/io.github.89luca89.distrobox/podman
@@ -0,0 +1,8 @@
+#!/usr/bin/bash
+
+set -x
+
+command="$@"
+command=$(echo "${command}" | sed 's|podman||' | sed 's|--volume /run/host/monitor/host.conf:/etc/host.conf:ro||' | sed 's|--volume /run/host/monitor/hosts:/etc/hosts:ro||' | sed 's|--volume /run/host/monitor/resolv.conf:/etc/resolv.conf:ro||')
+
+flatpak-spawn --host podman $command