summaryrefslogtreecommitdiffstats
path: root/meta-agl-core/dynamic-layers/meta-selinux/recipes-core/systemd/files/systemd-selinux-relabel.sh
blob: b2557a8d6cf58b0e0298fc7bbf16144342d14bd1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

# Update labels on files generated on first boot.
/usr/sbin/restorecon -FRi /etc/systemd /etc/machine-id
if [ $? -eq 0 ]; then
	# Disable parent service
	# NOTE: The service does not use the first boot functionality
	#       in systemd as /etc/machine-id is not writeable until
	#       after it is complete.
	systemctl disable systemd-selinux-relabel.service
fi
exit 0