aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--systemd/system/fedora-autorelabel.service6
1 files changed, 4 insertions, 2 deletions
diff --git a/systemd/system/fedora-autorelabel.service b/systemd/system/fedora-autorelabel.service
index bca3f956..95877315 100644
--- a/systemd/system/fedora-autorelabel.service
+++ b/systemd/system/fedora-autorelabel.service
@@ -1,10 +1,12 @@
[Unit]
Description=Relabel all filesystems, if necessary
DefaultDependencies=no
+Requires=local-fs.target
Conflicts=shutdown.target
-Before=shutdown.target emergency.service emergency.target
After=local-fs.target
-Requires=remount-rootfs.service local-fs.target
+Before=sysinit.target shutdown.target
+ConditionKernelCommandLine=autorelabel
+ConditionFileExists=/.autorelabel
[Service]
ExecStart=/lib/systemd/fedora-autorelabel