1# SPDX-License-Identifier: LGPL-2.1-or-later
2[Unit]
3Description=Relabel all filesystems
4DefaultDependencies=no
5Requires=local-fs.target
6Conflicts=shutdown.target
7After=local-fs.target
8Before=sysinit.target shutdown.target
9ConditionSecurity=selinux
10ConditionPathExists=|/.autorelabel
11
12[Service]
13ExecStart=sh -x -c 'echo 0 >/sys/fs/selinux/enforce && fixfiles -f -F relabel && rm /.autorelabel && systemctl --force reboot'
14Type=oneshot
15TimeoutSec=0
16RemainAfterExit=yes
17
18[Install]
19WantedBy=basic.target
20