aboutsummaryrefslogtreecommitdiffstats
path: root/systemd/system/fedora-autorelabel-mark.service
diff options
context:
space:
mode:
Diffstat (limited to 'systemd/system/fedora-autorelabel-mark.service')
-rw-r--r--systemd/system/fedora-autorelabel-mark.service15
1 files changed, 15 insertions, 0 deletions
diff --git a/systemd/system/fedora-autorelabel-mark.service b/systemd/system/fedora-autorelabel-mark.service
new file mode 100644
index 00000000..33b5147b
--- /dev/null
+++ b/systemd/system/fedora-autorelabel-mark.service
@@ -0,0 +1,15 @@
+[Unit]
+Description=Mark the need to relabel after reboot
+DefaultDependencies=no
+Requires=local-fs.target
+Conflicts=shutdown.target
+After=local-fs.target
+Before=sysinit.target shutdown.target
+ConditionSecurity=!selinux
+ConditionPathIsDirectory=/etc/selinux
+ConditionPathExists=!/.autorelabel
+
+[Service]
+ExecStart=-/bin/touch /.autorelabel
+Type=oneshot
+RemainAfterExit=yes