Add SELinux feature
[AGL/meta-agl.git] / meta-agl-core / dynamic-layers / meta-selinux / recipes-core / systemd / files / systemd-selinux-relabel.sh
1 #!/bin/sh
2
3 # Update labels on files generated on first boot.
4 /usr/sbin/restorecon -FRi /etc/systemd /etc/machine-id
5 if [ $? -eq 0 ]; then
6         # Disable parent service
7         # NOTE: The service does not use the first boot functionality
8         #       in systemd as /etc/machine-id is not writeable until
9         #       after it is complete.
10         systemctl disable systemd-selinux-relabel.service
11 fi
12 exit 0