FS#32184 - [devtools, systemd] mkarchroot+systemd-nspawn causes pacman prompt to exit in scripts

Attached to Project: Arch Linux
Opened by WorMzy Tykashi (WorMzy) - Tuesday, 23 October 2012, 15:07 GMT
Last edited by Dave Reisner (falconindy) - Saturday, 17 November 2012, 15:17 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Pierre Schmitz (Pierre)
Dave Reisner (falconindy)
Tom Gundersen (tomegun)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
When using a script/wrapper to a) build packages in a clean chroot (e.g. with extra-x86_64-build), and b) install the created package, pacman's "Proceed with installation? [Y/n]" prompt terminates before user input, and no installation occurs.


Additional info:

I'm still not sure if this is a problem with systemd-nspawn, with devtools' mkarchroot script, or even with something else. Disabling systemd-nspawn by setting have_nspawn to 0 (line 344 of mkarchroot) fixes the problem.

Forum thread :- https://bbs.archlinux.org/viewtopic.php?id=151026

package version(s):
>= devtools-20121003-1 (i.e. when systemd-nspawn was added to mkarchroot)
Only tested with systemd-194-4

Tested on two machines with identical results.

Steps to reproduce:

- Have systemd as PID 1
- Set up chroot (e.g. for extra-x86_64)
- Get a PKGBUILD (e.g. for devtools-20121013-1)
- Run (as root): extra-x86_64-build && pacman -U devtools-20121013-1-any.pkg.tar.xz
OR
- Run (as normal user): sudo extra-x86_64-build && sudo pacman -U devtools-20121013-1-any.pkg.tar.xz

Note that by running the commands separately, e.g.
root@host# extra-x86_64-build
[...]
root@host# pacman -U devtools-20121013-1-any.pkg.tar.xz

The expected behaviour occurs, and the pacman prompt waits for user input.
This task depends upon

Closed by  Dave Reisner (falconindy)
Saturday, 17 November 2012, 15:17 GMT
Reason for closing:  Upstream
Additional comments about closing:  File a bug upstream if you want systemd-nspawn to function without stdin connected to a terminal

Loading...