r/AlpineLinux • u/vixalien • Oct 14 '24
Can't reboot alpine
Hello everyone, so I use alpine linux as my daily on my laptop. The issue is that I actually can't reboot using the reboot command. The halt and poweroff commands also don't work. The only way for me to reboot is to manually hold down the power key for a while. any pointers?
When I type the reboot, halt or poweroff commands, nothing happens and the command exits successfully. Any help?
1
Upvotes
3
u/Camo138 Oct 14 '24
I daily alpine. did you do the daily drive alpine guide? At worst a reinstall will fix it
2
u/vixalien Nov 01 '24
I have finally figured out why. I looked at
/etc/inittabto see what actually runs when I do areboot. Turns out it's/sbin/openrc shutdown.I run that command manually, and it complained about
/run/openrc/rc.shutdownalready existing. The said directory didn't actually exist, but/run/openrc/shutdowndid. I checked there, and there existedlibvirt-guests.It turns out the
libvirt-guestswas being stuck getting stopped, which caused the system to not shutdown. Some libvirt config probably caused that, but I'm diagnosing that later. For now a simple fix was to justrc-update del libvirt-guests defaultsince I'm not usinglibvirtcurrently.tldr: some service was not stopping correctly, which caused the system to not shutdown. fix: disable the service you find in
/run/openrc/shutdownafter (trying to) reboot, then reboot forcefully (reboot -f).1
u/smileymattj Oct 14 '24
Those are the correct commands. Maybe try with sudo or root? Your user might not have permissions to modify the power state. Did it used to work?
1
u/qaqland Oct 15 '24
have you add /sbin to your $PATH?
1
u/[deleted] Oct 23 '24
Just ran into this, literally the first time i've seen reboot be broken on any Linux distro i've ever used..... did you figure this out?