aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Rodrigues Lordello <[email protected]>2026-09-15 14:49:49 +0200
committerNicholas Rodrigues Lordello <[email protected]>2026-09-15 14:49:49 +0200
commit001b21edafd026e8346ec15212469f0d11cd2fb8 (patch)
tree60af42019ad5a9ca9b2bfb93b5923c6090fee3ef
parent717968007c67fca3067777cffa3dd40582968f4a (diff)
Simplify Podman+Krun Creation
Two options weren't actually needed but still hanging around: - the KRUN_INIT_PID1 caused more issues than it solved, as it prevented the proper reporting of exit codes (among other things) to `crun`. Now that we have an `/sbin/stop` script, and the init script correctly forces `tini` to be a subreaper, this is no longer needed. - the `network` flag, specifically adding the `--map-guest-addr none` flags wasn't actually doing anything for security.
-rwxr-xr-xdbx4
1 files changed, 0 insertions, 4 deletions
diff --git a/dbx b/dbx
index 6b0b85f..aa1c35c 100755
--- a/dbx
+++ b/dbx
@@ -529,14 +529,10 @@ elif [ "$OS" = "Linux" ] && has_commands podman krun; then
CONFIG
fi
- # Set `KRUN_INIT_PID1` so our `init` ends up with PID 1 and let
- # the OS allocate a port for publishing `sshd`.
podman create \
--runtime=krun \
--name="$name" \
- --env="KRUN_INIT_PID1=1" \
--hostname="$name" \
- --network="pasta:--no-map-gw,--map-guest-addr,none" \
--publish="127.0.0.1::22" \
"$image" \
>/dev/null