Project

General

Profile

Bug #431

[librechroot] Allow stdin to not be a TTY

lukeshu - over 10 years ago - . Updated over 5 years ago.

Status:
fixed
Priority:
wish
Category:
-
Assignee:
% Done:

100%


Description

The
reason it doesn't is because of a bug in systemd-nspawn.

The systemd bug is at:
https://bugs.freedesktop.org/show_bug.cgi?id=70290

Once the bug is fixed, the check in librechroot that verifies that stdin
is a TTY can be removed. (The relevant code is tagged with "XXX:
SYSTEMD-STDIN HACK".)


Related issues

Related to libretools - Bug #1513: [librechroot] Integrate chroot-nspawnnot-a-bug

Actions

History

#2

Updated by lukeshu over 10 years ago

  • Priority changed from feature to wish

The systemd bug was closed because the stdout bug was fixed, while the stdin part was more of a wish. I don't think it's documented, but systemd-nspawn doesn't support stdin not being a TTY; it closes stdin if that is the case. So, that might be OK for background jobs, but because the signal handling is TTY-based, it also has no signal handling.

Fixing that in systemd-nspawn is actually really complicated, if even possible to do correctly.

#3

Updated by lukeshu over 6 years ago

The relevant parts of systemd-nspawn have changed in the intervening years. I'm not sure if it still has the same issues described. I've been meaning to look in to it.

In the meantime, this can be worked around in automation by allocating a PTY for it, see https://git.parabola.nu/server/autobuilder.git/tree/.local/bin/autobuild.sh

#4

Updated by Megver83 over 6 years ago

  • Related to Bug #1513: [librechroot] Integrate chroot-nspawn added
#5

Updated by lukeshu over 5 years ago

  • Description updated (diff)

There are 5 sub-bugs linked.

  1. Fixed & issue closed
  2. Fixed & issue closed
  3. IDK
  4. Fixed since then
  5. IDK
#6

Updated by lukeshu over 5 years ago

5: Fixed since then

#7

Updated by lukeshu over 5 years ago

3: Fixed

#8

Updated by lukeshu over 5 years ago

  • % Done changed from 0 to 100
  • Assignee set to lukeshu
  • Status changed from open to fixed

Also available in: Atom PDF