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 a8c0d4388c
commit 7732783e1f

View File

@ -63,7 +63,7 @@ relabel_selinux() {
grub2-editenv - incr boot_indeterminate >/dev/null 2>&1 grub2-editenv - incr boot_indeterminate >/dev/null 2>&1
fi fi
sync sync
systemctl --force reboot systemctl reboot
} }
# Check to see if a full relabel is needed # Check to see if a full relabel is needed