makechrootpkg: Reopen console to assign the CTTY

nspawn does not give us a controlling terminal, hence we ignore
interrupts. Apparently this was lost in systemd at some point.

Hack around this by reopening the console to make it the controlling
terminal.
This commit is contained in:
Jan Alexander Steffens (heftig) 2017-09-14 23:31:41 +02:00
parent 0f3778c3d3
commit ddd508efc0
No known key found for this signature in database
GPG Key ID: A5E9288C4FA415FA
1 changed files with 3 additions and 0 deletions

View File

@ -241,6 +241,9 @@ EOF
# These functions aren't run in makechrootpkg,
# so no global variables
_chrootbuild() {
# Work around nspawn not giving us a ctty
exec </dev/console
# No coredumps
ulimit -c 0