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)
* Now in-line with upstream: Remove --keep-unit since it causes sometimes
  errors and does not seem to be required
This commit is contained in:
Martchus 2019-04-16 17:15:34 +02:00
parent 31b3ed8ce1
commit 1e26863d0d
1 changed files with 2 additions and 0 deletions

View File

@ -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