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