shutdown: re-enable CAD handling in kernel at start

This commit is contained in:
Mike Yuan
2024-06-05 17:57:07 +02:00
parent 758760a361
commit 0dd4a33454

View File

@@ -374,6 +374,11 @@ int main(int argc, char *argv[]) {
log_set_always_reopen_console(true);
/* Re-enable reboot on Ctrl-Alt-Delete, so that if close/broadcast_signal/umount/... stalls,
* or an error is encountered and we freeze(), the user can still initiate a force reboot
* through kernel. */
(void) reboot(RB_ENABLE_CAD);
r = parse_argv(argc, argv);
if (r < 0)
goto error;