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)
This commit is contained in:
parent
67382b2784
commit
4b2e024b61
|
@ -63,6 +63,8 @@ nspawn_args=(
|
||||||
--slice="devtools-$(systemd-escape "${SUDO_USER:-$USER}")"
|
--slice="devtools-$(systemd-escape "${SUDO_USER:-$USER}")"
|
||||||
--machine="arch-nspawn-$$"
|
--machine="arch-nspawn-$$"
|
||||||
--as-pid2
|
--as-pid2
|
||||||
|
--rlimit=NOFILE=10000
|
||||||
|
--resolv-conf=copy-host
|
||||||
)
|
)
|
||||||
|
|
||||||
if (( ${#cache_dirs[@]} == 0 )); then
|
if (( ${#cache_dirs[@]} == 0 )); then
|
||||||
|
|
Loading…
Reference in New Issue