Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using Busybox poweroff/reboot never properly shuts down the system #287

Open
PureTryOut opened this issue Jan 28, 2024 · 8 comments
Open

Comments

@PureTryOut
Copy link

I've just got a minimal Alpine system booting with dinit (using these service files) and it seems to work great. However the system fails to properly shutdown/reboot when using the Busybox command for it the last thing printed to the console is "Issuing shutdown via kernel..." but then hangs there forever. dinit-shutdown as provided by dinit itself in the Alpine packaging works fine however and according to the logs does basically the same thing, so I'm not sure what the difference is.

@davmac314
Copy link
Owner

Hmm, do you mean, when using the Busybox version of shutdown? I'm actually surprised it gets even that far. Do you see the "Turning off swap..." and "Unmounting disks..." messages prior to "Issuing shutdown via the kernel..."?

@PureTryOut
Copy link
Author

using the Busybox version of shutdown

Yes.

Screenshot_20240128_122540

Note that rcboot failing there also happens with dinit-shutdown, so it doesn't seem related.

@davmac314
Copy link
Owner

The "devtmpfs busy" is odd. Does that happen when using dinit-shutdown?

@davmac314
Copy link
Owner

davmac314 commented Jan 28, 2024

(Just to be clear, it's basically coincidence that Busybox reboot command appears to use the same signal to issue a reboot that dinit expects. This isn't really supposed to work...)
Edit: although, having got as far as printing the "Issuing shutdown" message, it really should shut down at that point.

@PureTryOut
Copy link
Author

It does yes. Output is basically the same for both commands, just the one actually shuts down the machine fully 😅

@davmac314
Copy link
Owner

Could you try kill -INT 1 as an alternative and see what happens with that? If that works, looks like Busybox reboot command is doing something funny to interfere with shutdown.

@PureTryOut
Copy link
Author

Yeah that works fine.

@davmac314
Copy link
Owner

Ok, I'll probably have to try and reproduce it to debug this. It sort of falls in the "not really supported" category so for now just use dinit-shutdown instead. But it does seem something is going wrong so I'd like to check that out when I get a chance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants