Bug 1468837 - glibc: bash no longer has job control under systemd-nspawn (via mock)
Summary: glibc: bash no longer has job control under systemd-nspawn (via mock)
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: glibc
Version: 27
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Florian Weimer
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-07-08 17:42 UTC by Jerry James
Modified: 2018-01-02 16:53 UTC (History)
18 users (show)

Fixed In Version: glibc-2.26.9000-27.fc28 glibc-2.26-21.fc27
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-01-02 16:53:39 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Sourceware 22145 0 None None None 2017-12-22 14:35:41 UTC

Description Jerry James 2017-07-08 17:42:57 UTC
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: run
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
Start: shell
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):
mock-1.4.2-1.fc25.noarch

How reproducible:
Always

Steps to Reproduce:
1. mock -r <architecture> shell
2.
3.

Actual results:
A shell with no job control.

Expected results:
A shell with job control.

Additional info:
This used to work in the previous version, mock-1.3.4-1.fc25.

Comment 1 Miroslav Suchý 2017-07-10 12:46:04 UTC
This is because all commands in chroot are now executed using systemd-nspawn, which uses busybox. See:
https://busybox.net/FAQ.html#job_control

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.

Comment 2 Fedora End Of Life 2017-11-16 19:20:25 UTC
This message is a reminder that Fedora 25 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 25. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '25'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not
able to fix it before Fedora 25 is end of life. If you would still like
to see this bug fixed and are able to reproduce it against a later version
of Fedora, you are encouraged  change the 'version' to a later Fedora
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

Comment 3 Florian Weimer 2017-12-13 13:20:07 UTC
Isn't this a glibc bug, namely:

  https://sourceware.org/bugzilla/show_bug.cgi?id=22145

Could you check current rawhide and see if it is fixed?  Note that the glibc version inside the chroot matters.  The first version with the upstream fix is glibc-2.26.9000-27.fc28.

Comment 4 Miroslav Suchý 2017-12-15 10:42:36 UTC
Indeed. It is working now in rawhide. Thank you for the investigation Florian.

I will not close this as duplicate as this is worth mentioning in relase notes and errata.

Comment 5 Florian Weimer 2017-12-15 10:49:09 UTC
I'll see if I can backport the glibc fix into Fedora 27.

Comment 6 Fedora Update System 2017-12-22 22:27:02 UTC
glibc-2.26-21.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2017-828f8a8fc6

Comment 7 Fedora Update System 2017-12-23 19:44:12 UTC
glibc-2.26-21.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-828f8a8fc6

Comment 8 Fedora Update System 2018-01-02 16:53:39 UTC
glibc-2.26-21.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.