selinux-autorelabel: synchronize cached writes before reboot

This should prevent boot loops when 'touch /.autorelabel' has been used.

  See: https://bugzilla.redhat.com/show_bug.cgi?id=1385272

Signed-off-by: David Kaspar [Dee'Kej] <dkaspar@redhat.com>
This commit is contained in:
David Kaspar [Dee'Kej] 2018-05-17 17:39:24 +02:00
parent 4af347c8e5
commit f5a2299168

View File

@ -59,6 +59,7 @@ relabel_selinux() {
rm -f /.autorelabel
/usr/lib/dracut/dracut-initramfs-restore
efi_set_boot_next
sync
systemctl --force reboot
}