Systemd: reboot --force does not actually reboot immediately

Created on 13 Jun 2020  路  3Comments  路  Source: systemd/systemd

systemd version the issue has been seen with

245.5-3



Used distribution

Debian sid

Expected behaviour you didn't see

Actual reboot

Unexpected behaviour you saw

System freezing

Steps to reproduce the problem
run reboot --force

not-our-bug

Most helpful comment

I should elaborate.

reboot -f does not reboot, nor does it freeze the system.
It is still responsive as if nothing happened except the terminal doing the reboot -f is frozen.
So no reboot() system call is called, something else happens.

For future reference, echo b > /proc/sysrq-trigger works as a workaround and instantly reboots the system.

All 3 comments

"reboot --force" just means we call the kernel's reboot() syscall, nothing else. If that freezes it's a bug in the kernel or firmware. There's nothing systemd can do about that. Please report to your kernel maintainers.

Sorry!

wouldn't that be reboot -f -f ?
man page is not very clear...

I should elaborate.

reboot -f does not reboot, nor does it freeze the system.
It is still responsive as if nothing happened except the terminal doing the reboot -f is frozen.
So no reboot() system call is called, something else happens.

For future reference, echo b > /proc/sysrq-trigger works as a workaround and instantly reboots the system.

Was this page helpful?
0 / 5 - 0 ratings