From 13690f5886cc0cc05e50cd7b82419b7bf82499ef Mon Sep 17 00:00:00 2001 From: Marius Kittler Date: Tue, 16 Apr 2019 17:15:34 +0200 Subject: [PATCH] Adjust systemd-nspawn flags * Remove --keep-unit since it causes sometimes errors and does not seem to be required * 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) --- arch-nspawn.in | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/arch-nspawn.in b/arch-nspawn.in index 76c595c..2da8de2 100644 --- a/arch-nspawn.in +++ b/arch-nspawn.in @@ -133,6 +133,9 @@ eval "$(grep -a '^CARCH=' "$working_dir/etc/makepkg.conf")" exec systemd-nspawn -q \ -D "$working_dir" \ -E "PATH=/usr/local/sbin:/usr/local/bin:/usr/bin" \ - --register=no --keep-unit --as-pid2 \ + --register=no \ + --as-pid2 \ + --rlimit=NOFILE=10000 \ + --resolv-conf=copy-host \ "${mount_args[@]}" \ "$@"