Bug 1298999

Summary: dnf hangs if "--autologin root" is added to container-getty@.service
Product: [Fedora] Fedora Reporter: Gregory Lee Bartholomew <gregory.lee.bartholomew>
Component: dnfAssignee: rpm-software-management
Status: CLOSED EOL QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 22CC: gregory.lee.bartholomew, jsilhan, mluscon, packaging-team-maint, pnemade, vmukhame
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-07-19 18:39:36 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Gregory Lee Bartholomew 2016-01-15 16:14:01 UTC
Description of problem:

dnf install <packagename> hangs at confirmation prompt if autologin is enabled for the systemd container.

Version-Release number of selected component (if applicable):

dnf-1.1.5-1.fc22.noarch

How reproducible:

Steps to Reproduce:

dnf -y --releasever=22 --nogpg --installroot=/var/lib/machines/container1 --disablerepo='*' --enablerepo=fedora --enablerepo=updates install fedora-release systemd passwd rootfiles dnf vim-minimal

sed -i '/^root/s!*!!' /var/lib/machines/container1/etc/shadow

cp /var/lib/machines/container1/usr/lib/systemd/system/container-getty\@.service /var/lib/machines/container1/etc/systemd/system

sed -i '/^ExecStart=/s!--keep-baud!--keep-baud --autologin root!' /var/lib/machines/nagios/etc/systemd/system/container-getty\@.service

machinectl start container1
machinectl login container1

dnf install <arbitrary-package>
...
*** HANG ***

Actual results:

Expected results:

Wouldn't expect autologin to hang dnf.

Additional info:

Comment 1 Gregory Lee Bartholomew 2016-01-15 19:10:21 UTC
P.S.  I just noticed a typo in the second sed command I supplied.  It should have been:

sed -i '/^ExecStart=/s!--keep-baud!--keep-baud --autologin root!' /var/lib/machines/container1/etc/systemd/system/container-getty\@.service

Comment 2 Honza Silhan 2016-01-19 14:59:56 UTC
Does it hang in transaction confirmation prompt or during gpg key import? Does it work if you add `-y` as a parameter?

Comment 3 Gregory Lee Bartholomew 2016-01-19 16:11:36 UTC
With '-y', dnf install <package> works.  Without '-y', when I type "y<enter>" at the prompt, the carriage returns, but the line does not advance on the terminal and at that point, dnf is hung.

Comment 4 Fedora Admin XMLRPC Client 2016-07-08 09:31:58 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 5 Fedora End Of Life 2016-07-19 18:39:36 UTC
Fedora 22 changed to end-of-life (EOL) status on 2016-07-19. Fedora 22 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.