diff --git a/distrobox-create b/distrobox-create index 040a39016a..853bd64f0d 100755 --- a/distrobox-create +++ b/distrobox-create @@ -157,7 +157,7 @@ Usage: distrobox create --image alpine:latest --name test --init-hooks "touch /var/tmp/test1 && touch /var/tmp/test2" distrobox create --image fedora:39 --name test --additional-flags "--env MY_VAR-value" - distrobox create --image fedora:39 --name test --volume /opt/my-dir:/usr/local/my-dir:rw --additional-flags "--pids-limit -1" + distrobox create --image fedora:39 --name test --volume /opt/my-dir:/usr/local/my-dir:rw --additional-flags "--pids-limit 100" distrobox create -i docker.io/almalinux/8-init --init --name test --pre-init-hooks "dnf config-manager --enable powertools && dnf -y install epel-release" distrobox create --clone fedora-39 --name fedora-39-copy distrobox create --image alpine my-alpine-container @@ -570,6 +570,7 @@ generate_command() { --privileged --security-opt label=disable --security-opt apparmor=unconfined + --pids-limit=-1 --user root:root" if [ "${unshare_ipc}" -eq 0 ]; then diff --git a/distrobox-init b/distrobox-init index 282093bc94..7024a16a8a 100755 --- a/distrobox-init +++ b/distrobox-init @@ -2192,7 +2192,7 @@ printf "distrobox: Firing up init system...\n" if [ -e /usr/lib/systemd/systemd ] || [ -e /lib/systemd/systemd ]; then # Start user Systemd unit, this will attempt until Systemd is ready sh -c "while true; do \ - sleep 1; \ + sleep 5; \ systemctl start user@${container_user_name}.service 2>/dev/null && \ systemctl start user-integration@${container_user_name}.service 2>/dev/null && \ exit 0; \ @@ -2200,7 +2200,7 @@ if [ -e /usr/lib/systemd/systemd ] || [ -e /lib/systemd/systemd ]; then sh -c " while true; do \ systemctl is-system-running && break; \ - printf >&2 'waiting for systemd to come up...\n' && sleep 1; \ + printf >&2 'waiting for systemd to come up...\n' && sleep 5; \ done; \ printf container_setup_done" &