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

pages: emergency-shell #74

Merged
merged 4 commits into from
May 21, 2020
Merged

pages: emergency-shell #74

merged 4 commits into from
May 21, 2020

Conversation

xanderificnl
Copy link
Contributor

Adds documentation to describe how to access the emergency shell with tty0.

Resolves (by documentating) coreos/fedora-coreos-tracker#453

Adds documentation to describe how to access the emergency shell with tty0.

Resolves (by documentating) coreos/fedora-coreos-tracker#453

If there is an error while booting Fedora CoreOS and emergency.target is reached a shell prompt will open by default on ttyS0 (i.e. serial console).

To access the emergency shell when using VGA intercept the GRUB menu and edit the entry to append 'console=tty0' to the kernel argument list, then press Ctrl-X to resume booting.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that parameter is already on the command-line (both should be there).
If the machine does not have/use a serial console, it should be enough to drop the unwanted console= argument.
Can you confirm that works for you too?

@lucab
Copy link
Contributor

lucab commented May 18, 2020

@web-refinery thanks for the PR! I've left a comment with a minor doubt I had.

In general, we should mention somewhere that this only affects the first-boot provisioning, i.e. when Ignition fails to setup a new machine.

@xanderificnl
Copy link
Contributor Author

@lucab You were correct, thanks for the feedback! There are several console parameters by default. I had only noticed the serial console one. How's the PR looking now?

It is unfortunate that we can only output to all console's but not mirror them so the emergency shell would be on all of them. Oh well.


To access the emergency shell when not using a serial console, you should intercept the GRUB menu and edit the entry to drop all 'console' parameters from the kernel line that you don't need, then press Ctrl+X to resume booting.

For VGA, you would keep 'console=tty0'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is either missing the final dot, or a whole part of a sentence.

I'd probably move this as the second paragraph in the page, explaining that there are two console= parameters by default and what each is for (perhaps as a bullet list).

@xanderificnl
Copy link
Contributor Author

@lucab Thanks again for the feedback. I've made some more modifications, to (hopefully) improve readability.

If I understood your feedback correctly, this should cover it. Can you let me know or edit my fork directly?

@lucab
Copy link
Contributor

lucab commented May 21, 2020

@web-refinery yes, this looks good. I'll squash and merge. Thanks again!

@lucab lucab merged commit 448738b into coreos:master May 21, 2020
@xanderificnl
Copy link
Contributor Author

Woo! My first ever pull request (ever), merged! Thanks!

(I was away so I hadn't noticed it yet!)

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

Successfully merging this pull request may close these issues.

2 participants