Bug 1298999 - dnf hangs if "--autologin root" is added to container-getty@.service
Summary: dnf hangs if "--autologin root" is added to container-getty@.service
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf
Version: 22
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: rpm-software-management
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-01-15 16:14 UTC by Gregory Lee Bartholomew
Modified: 2016-07-19 18:39 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-07-19 18:39:36 UTC
Type: Bug


Attachments (Terms of Use)

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.


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