From 001b21edafd026e8346ec15212469f0d11cd2fb8 Mon Sep 17 00:00:00 2001 From: Nicholas Rodrigues Lordello Date: Tue, 15 Sep 2026 14:49:49 +0200 Subject: 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. --- dbx | 4 ---- 1 file changed, 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 -- cgit v1.2.3