I locally applied https://github.com/lxc/lxc/commit/12752e2 to our current package and built it. Now it looks better:
# lxc-attach -n a runlevel N 5 # lxc-attach -n a runlevel </dev/null N 5 # lxc-attach -n a runlevel </dev/null 2>/dev/null N 5 # lxc-attach -n a runlevel </dev/null 2>/dev/null | cat So redirecting stdin only now does not show this "lxc_console_cb_tty_master: 683 Bad file" error any more, and redirecting stderr now works too. But redirecting stdout in addition still doesn't? Maybe I'm missing another fix from trunk, though. -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to lxc in Ubuntu. https://bugs.launchpad.net/bugs/1551960 Title: lxc-attach does not work any more with input redirection Status in lxc package in Ubuntu: Fix Committed Bug description: LXC 2.0.0~rc{2,3,4} break autopkgtest's LXC runner. Downgrading to 2.0.0~rc1 works again. The issue is that lxc-attach stops working properly with input redirection. # lxc-start -n a Until 2.0.0~rc1 I could redirect lxc-attach's stdout: # lxc-attach -n a runlevel </dev/null 2>/dev/null |cat N 5 But now this does not work any more: # lxc-attach -n a runlevel N 5 # lxc-attach -n a runlevel </dev/null lxc-attach: console.c: lxc_console_cb_tty_master: 683 Bad file descriptor - failed to write # lxc-attach -n a runlevel </dev/null 2>/dev/null # lxc-attach -n a runlevel </dev/null 2>/dev/null | cat # I. e. the last two commands don't have any output at all any more. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1551960/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : [email protected] Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp

