From 665c62cdc7e2d1858e8b69ba61e98c4e74a4411c Mon Sep 17 00:00:00 2001 From: Vit Mojzis Date: Thu, 7 Jul 2022 16:20:13 +0200 Subject: [PATCH] selinux-autorelabel: Do not force reboot Forced reboot ends up NOT triggering normal unit shutdown, but only sends TERM signal, then KILL later. Some processes such as dmeventd do not quit on receiving TERM signal (protected), which means they are killed after a long delay by systemd using the KILL signal. In case the normal reboot doesn't go through, "reboot.target" will be triggered after a timeout and send the KILL signal anyway. Resolves: rhbz#2093133 --- selinux-autorelabel | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selinux-autorelabel b/selinux-autorelabel index 22c2143..f0b5cfa 100755 --- a/selinux-autorelabel +++ b/selinux-autorelabel @@ -63,7 +63,7 @@ relabel_selinux() { grub2-editenv - incr boot_indeterminate >/dev/null 2>&1 fi sync - systemctl --force reboot + systemctl reboot } # Check to see if a full relabel is needed