summaryrefslogtreecommitdiff
path: root/makechrootpkg.in
diff options
context:
space:
mode:
authorJan Alexander Steffens (heftig) <jan.steffens@gmail.com>2017-09-14 23:31:41 +0200
committerJan Alexander Steffens (heftig) <jan.steffens@gmail.com>2017-09-14 23:33:47 +0200
commitddd508efc083fc9beb6f2c96e2537521b31c1e6f (patch)
tree7733aaedfa57e4cc8524b9e1693c43b43fb01be7 /makechrootpkg.in
parent0f3778c3d36028e5c9d4e5ec702c8f167e1cebba (diff)
downloaddevtools-ddd508efc083fc9beb6f2c96e2537521b31c1e6f.tar.xz
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.
Diffstat (limited to 'makechrootpkg.in')
-rw-r--r--makechrootpkg.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/makechrootpkg.in b/makechrootpkg.in
index add87d3..8724355 100644
--- a/makechrootpkg.in
+++ b/makechrootpkg.in
@@ -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