Bug 1196974

Summary: Autorelabel doesn't work
Product: [Fedora] Fedora Reporter: Jaroslav Škarvada <jskarvad>
Component: systemdAssignee: systemd-maint
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 21CC: jmatthew, johannbg, jonathan, jsynacek, lnykryn, msekleta, s, systemd-maint, vpavlin, zbyszek
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: 2015-03-04 09:09:11 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:
Attachments:
Description Flags
Journal with debug none

Description Jaroslav Škarvada 2015-02-27 08:54:19 UTC
Description of problem:
Autorelabel stopped working after installation of some update.

Version-Release number of selected component (if applicable):
initscripts-9.56.1-6.fc21.x86_64

How reproducible:
Always

Steps to Reproduce:
1. touch /.autorelabel
2. reboot
3. systemctl status fedora-autorelabel.service

Actual results:
Autorelabel doesn't run, following error:

* fedora-autorelabel.service - Relabel all filesystems, if necessary
   Loaded: loaded (/usr/lib/systemd/system/fedora-autorelabel.service; static)
   Active: failed (Result: exit-code) since Fri 2015-02-27 09:46:16 CET; 6min ago
  Process: 1026 ExecStart=/lib/systemd/fedora-autorelabel (code=exited, status=208/STDIN)
 Main PID: 1026 (code=exited, status=208/STDIN)

Feb 27 09:46:16 yarda systemd[1]: fedora-autorelabel.service: main process exited, code=exited, status=208/STDIN
Feb 27 09:46:16 yarda systemd[1]: Failed to start Relabel all filesystems, if necessary.
Feb 27 09:46:16 yarda systemd[1]: Unit fedora-autorelabel.service entered failed state.
Feb 27 09:46:16 yarda systemd[1]: fedora-autorelabel.service failed.

Expected results:
Autorelable runs, no error

Additional info:

Comment 1 Lukáš Nykrýn 2015-02-27 09:18:38 UTC
Hmm weird, can you add set -x to /usr/lib/systemd/fedora-autorelabel boot with debug on kernel cmdline and post here output of journal?

Comment 2 Jaroslav Škarvada 2015-02-27 09:37:14 UTC
Failed at step STDIN spawning /lib/systemd/fedora-autorelabel: Inappropriate ioctl for device

Maybe there is dupe bug 1049656.

Attaching the whole journal for reference.

Comment 3 Jaroslav Škarvada 2015-02-27 09:37:43 UTC
Created attachment 995955 [details]
Journal with debug

Comment 4 Lukáš Nykrýn 2015-02-27 11:00:07 UTC
Hmm this looks more like a problem with systemd
úno 27 10:30:01 yarda systemd[1033]: Failed at step STDIN spawning /lib/systemd/fedora-autorelabel: Inappropriate ioctl for device

Comment 5 Jan Synacek 2015-03-04 09:09:11 UTC

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