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:
parent
a8c0d4388c
commit
7732783e1f
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user