From 4b2e024b61a308b2980cf43dfd9d16f96b8286a6 Mon Sep 17 00:00:00 2001 From: Martchus Date: Tue, 16 Apr 2019 17:15:34 +0200 Subject: [PATCH] Adjust systemd-nspawn flags * Increase maximum number of open files (the default of 1000 is too less for some packages) * Use /etc/resolv.conf from host (otherwise systemd-nspawn uses a config which does not work on my host setup) --- src/arch-nspawn.in | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/arch-nspawn.in b/src/arch-nspawn.in index 2339c32..d500e47 100644 --- a/src/arch-nspawn.in +++ b/src/arch-nspawn.in @@ -63,6 +63,8 @@ nspawn_args=( --slice="devtools-$(systemd-escape "${SUDO_USER:-$USER}")" --machine="arch-nspawn-$$" --as-pid2 + --rlimit=NOFILE=10000 + --resolv-conf=copy-host ) if (( ${#cache_dirs[@]} == 0 )); then