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:
parent
4af347c8e5
commit
f5a2299168
@ -59,6 +59,7 @@ relabel_selinux() {
|
|||||||
rm -f /.autorelabel
|
rm -f /.autorelabel
|
||||||
/usr/lib/dracut/dracut-initramfs-restore
|
/usr/lib/dracut/dracut-initramfs-restore
|
||||||
efi_set_boot_next
|
efi_set_boot_next
|
||||||
|
sync
|
||||||
systemctl --force reboot
|
systemctl --force reboot
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user