From f5a22991686af00e7cddc301ba7c6fd5d3e2cbbf Mon Sep 17 00:00:00 2001 From: "David Kaspar [Dee'Kej]" Date: Thu, 17 May 2018 17:39:24 +0200 Subject: [PATCH] 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] --- selinux-autorelabel | 1 + 1 file changed, 1 insertion(+) diff --git a/selinux-autorelabel b/selinux-autorelabel index 35ddcd4..173c7f0 100755 --- a/selinux-autorelabel +++ b/selinux-autorelabel @@ -59,6 +59,7 @@ relabel_selinux() { rm -f /.autorelabel /usr/lib/dracut/dracut-initramfs-restore efi_set_boot_next + sync systemctl --force reboot }