Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1527700 - anaconda text mode fails to boot with systemd 236
Summary: anaconda text mode fails to boot with systemd 236
Keywords:
Status: CLOSED DUPLICATE of bug 1526861
Alias: None
Product: Fedora
Classification: Fedora
Component: systemd
Version: rawhide
Hardware: All
OS: Linux
unspecified
urgent
Target Milestone: ---
Assignee: Frédéric Lepied
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: F28BetaBlocker
TreeView+ depends on / blocked
 
Reported: 2017-12-20 00:03 UTC by Adam Williamson
Modified: 2017-12-20 18:10 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-12-20 18:10:10 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Adam Williamson 2017-12-20 00:03:18 UTC
Since systemd-236-1.fc28 landed in Rawhide, anaconda text mode does not work properly. If you boot an installer image with the 'inst.text' parameter which should cause the text installer to run, the boot process appears to hang part way through and you're just left looking at boot messages, like this:

https://openqa.fedoraproject.org/tests/180817#step/_boot_to_anaconda/6

From the logs, it appears systemd is choking on one of the custom services anaconda uses:

20:38:42,185 ERR systemd:/lib/systemd/system/anaconda-tmux@.service:13: Failed to resolve unit specifiers on #033%G: Invalid slot
20:38:42,185 ERR systemd:/usr/lib/systemd/system/anaconda-tmux@.service:13: Failed to resolve unit specifiers on #033%G: Invalid slot
20:38:42,185 NOTICE systemd:anaconda-tmux: Unit configuration has fatal error, unit will not be started.
20:38:42,185 WARNING systemd:anaconda-tmux: Cannot add dependency job, ignoring: Unit anaconda-tmux is not loaded properly: Exec format error.

The problem appears to be this line in anaconda-tmux@.service:

ExecStartPre=/usr/bin/echo -e \033%G

The '\033%G' portion is intended for echo to consume, but systemd appears to be trying to parse it for some reason, and complaining.

Proposing as a Beta blocker per Basic criterion "When using a dedicated installer image, the installer must be able to complete an installation using the text, graphical and VNC installation interfaces" - https://fedoraproject.org/wiki/Basic_Release_Criteria#Installation_interfaces

Comment 1 Zbigniew Jędrzejewski-Szmek 2017-12-20 18:04:37 UTC
This is already fixed in https://github.com/rhinstaller/anaconda/commit/ab29bdff2e041ec4f354c3334d8aa15ea8366a17.

Apologies. I added code to tighten checking for unknown escapes in systemd. In hindsight it would have been better to first turn on some warning mode, and only after a release or two make it fatal.

It seems that this line was the only instance of unescaped % in the service files in Fedora. I think it's good enough if the new anaconda is released which will solve this issue. It'd also be possible to add make this non-fatal in systemd, but I don't think it's necessary at this point.

Comment 2 Adam Williamson 2017-12-20 18:10:10 UTC
Note for the record: that commit was made *after* I filed the bug :)

*** This bug has been marked as a duplicate of bug 1526861 ***


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