container hooks: make nspawn work inside nspawn
https://bugs.archlinux.org/task/55082 : > This is probably caused by the fact that `systemd-nspawn` now registers > a scope when `--register=no` is specified, unless `--keep-unit` is also > specified [1]. [1] https://github.com/systemd/systemd/pull/6166
This commit is contained in:
parent
0845468303
commit
518534d352
|
@ -76,7 +76,7 @@ then
|
|||
case "${HOOK}" in
|
||||
*.container)
|
||||
umount chroot/proc
|
||||
systemd-nspawn --capability=all -D chroot "/root/$(basename ${HOOK})" || { Echo_error "${HOOK} failed (exit non-zero). You should check for errors."; exit 1 ;}
|
||||
systemd-nspawn --capability=all --register=no --keep-unit -D chroot "/root/$(basename ${HOOK})" || { Echo_error "${HOOK} failed (exit non-zero). You should check for errors."; exit 1 ;}
|
||||
mount proc-live -t proc chroot/proc
|
||||
;;
|
||||
*)
|
||||
|
|
Loading…
Reference in New Issue