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