-
Notifications
You must be signed in to change notification settings - Fork 57
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
feat: allow rescue/emergency boot with grub cmdline args #488
Conversation
This uses a systemd-generator to dyamically write a drop-in config for the rescue and emergency services only when they are requested via the kernel cmdline, which requires console/grub access. This allows use of these modes with the default Fedora state of a password locked root user, but does not auto-allow root access in the case of a failed fsck-check, which can also drop into the emergency shell. Relates: #470
@ublue-os/approver please do NOT merge this until we've collected feedback. :-) Thank you. |
Some notes for reference:
|
Looks sane to me. Arguably we could try to put this in systemd upstream too. |
I'm not sure how easy it is to get merged into different projects. At the least, I figured we'd include it here and I'll PR to CoreOS. Then we'd have running use cases before pushing further upstream. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested well on my end!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not to be nit-picking but....
Title should be "kernel" instead of "grub", as it is not specific to Grub...
Plus it will boot, i guess, in a root shell?
(So mention that also)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works over here as well :)
@cgwalters , I had planned to PR this into CoreOS as a replacement for the current static drop-ins. Would prefer I first attempt going upstream to systemd? |
Landing in FCOS first sounds totally sane to me. |
I'm confused that the original PR ( #488 ) failed to COPY this file via the Containerfile, thus for the last few weeks this has not worked as intended. Given several people tested it, I'm not sure how we missed that, but this resolves it regardless.
This uses a systemd-generator to dyamically write a drop-in config for the rescue and emergency services only when they are requested via the kernel cmdline, which requires console/grub access. This allows use of these modes with the default Fedora state of a password locked root user, but does not auto-allow root access in the case of a failed fsck-check, which can also drop into the emergency shell.
Relates: #470