5b70e6
[Unit]
5b70e6
Description=Mark the need to relabel after reboot
5b70e6
DefaultDependencies=no
5b70e6
Requires=local-fs.target
5b70e6
Conflicts=shutdown.target
5b70e6
After=local-fs.target
5b70e6
Before=sysinit.target shutdown.target
5b70e6
ConditionSecurity=!selinux
5b70e6
ConditionPathIsDirectory=/etc/selinux
5b70e6
ConditionPathExists=!/.autorelabel
5b70e6
5b70e6
[Service]
5b70e6
ExecStart=-/bin/touch /.autorelabel
5b70e6
Type=oneshot
5b70e6
RemainAfterExit=yes
5b70e6
5b70e6
[Install]
5b70e6
WantedBy=sysinit.target