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

reboot and initctl does not work in sulogin #247

Closed
troglobit opened this issue Apr 25, 2022 Discussed in #243 · 1 comment
Closed

reboot and initctl does not work in sulogin #247

troglobit opened this issue Apr 25, 2022 Discussed in #243 · 1 comment
Assignees
Milestone

Comments

@troglobit
Copy link
Owner

  • At least the reboot/poweroff/shutdown/etc family of commands should work from a sulogin (rescue) session.
  • Document limited operating mode of Finit (initctl) in rescue mode.

Discussed in #243

Originally posted by hongkongkiwi April 22, 2022
So I jumped into rescue mode to test it out (I have sulogin on my system) it seems the internal finit communication doesn't work properly (is this intentional?)

I noticed it as I like to type (reboot):

# reboot
reboot: Failed connecting to finit: No such file or directory
# ls -lh /sbin/reboot
lrwxrwxrwx    1 root     root           7 Apr  7  2021 /sbin/reboot -> initctl
# which reboot
/sbin/reboot

Same thing happens with initctl

# initctl status
initctl: Failed connecting to finit: No such file or directory
# which initctl
/sbin/initctl
# ls -lh /sbin/initctl
-rwxr-xr-x    1 root     root       49.6K Apr  7  2021 /sbin/initctl

Also finit itself:

# finit 6
initctl: Failed connecting to finit: No such file or directory

Using the exit command works fine to continue to boot the system as normal (presumably because it's a builtin shell command)

@troglobit troglobit added this to the 4.3 milestone Apr 25, 2022
@troglobit troglobit self-assigned this Apr 25, 2022
@troglobit
Copy link
Owner Author

Fixed, sort of. When using the bundled sulogin reboot(initctl) can detect it's in sulogin mode and trigger over to default to -f (force). Nothing can be done about initctl's other commands since Finit is paused in the background when running the system in this diminished mode. This has been documented.

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

1 participant