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
This commit is contained in:
Vit Mojzis 2022-07-07 16:20:13 +02:00 committed by Petr Lautrbach
parent 7243ad7d8c
commit 665c62cdc7
1 changed files with 1 additions and 1 deletions

View File

@ -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