Red Hat Bugzilla – Bug 1468837
RFE: shell with job control under systemd-nspawn
Last modified: 2017-09-14 14:53:43 EDT
Description of problem:
$ mock -r fedora-rawhide-x86_64 --shell
INFO: mock.py version 1.4.2 starting (python version = 3.5.3)...
Start: init plugins
INFO: selinux disabled
Finish: init plugins
Start: chroot init
INFO: calling preinit hooks
INFO: enabled root cache
INFO: enabled dnf cache
Start: cleaning dnf metadata
Finish: cleaning dnf metadata
INFO: enabled HW Info plugin
Finish: chroot init
sh: cannot set terminal process group (-1): Inappropriate ioctl for device
sh: no job control in this shell
<mock-chroot> sh-4.4# su - mockbuild
-bash: cannot set terminal process group (2): Inappropriate ioctl for device
-bash: no job control in this shell
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. mock -r <architecture> shell
A shell with no job control.
A shell with job control.
This used to work in the previous version, mock-1.3.4-1.fc25.
This is because all commands in chroot are now executed using systemd-nspawn, which uses busybox. See:
If you want old behaviour you can use --old-chroot
I will keep this open, but I am not treating this as bug, but more like RFE.