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

Bootflag to stop at Petitboot shell #46

Open
causten opened this issue Oct 1, 2018 · 5 comments
Open

Bootflag to stop at Petitboot shell #46

causten opened this issue Oct 1, 2018 · 5 comments

Comments

@causten
Copy link
Member

causten commented Oct 1, 2018

Today in order for me to automate stopping at the Petitboot shell prompt I need to use an expect script to monitor port 22 for the menu and then issue arrow key strokes to select the option to drop to the shell.

Am I doing it wrong? Is there a better way? Can I set a flag on the BMC for it to drop me automatically and then present the boot status as such when it has happened?

@sammj
Copy link
Contributor

sammj commented Oct 2, 2018

No that's basically what https://github.com/open-power/op-test-framework/ does as well :)
Although you can optimise it slightly by just pressing x instead which will exit directly.

Hypothetically we could interpret one of the IPMI bootdev flags as "drop to shell once", but we'd have to have a bit of a think about whether it's intuitive to interpret flags like "bios" or "setup" that way - right now they stop at the Petitboot menu.

@oohal
Copy link
Contributor

oohal commented Nov 22, 2018

I'm not sure setting the bootdev to bios to stop autobooting makes a whole lot of sense to begin with so dropping to a shell on setup seems reasonable. What do x86 boxes do in each case?

@sammj
Copy link
Contributor

sammj commented Nov 23, 2018

@oohal Well x86 boxes don't tend to have shells :)
bios vs setup was me mixing up the ipmitool/openbmc ways of specifying flags, they are actually the same flag. Which leaves 'safe' and 'setup'. Safe has it's own requirements, and I think setup should still put you in Petitboot rather than the shell. It may be best just to x and be done with it.

@oohal
Copy link
Contributor

oohal commented Dec 3, 2018

Well x86 boxes don't tend to have shells :)

They do have an interactive bios though. I was thinking the x86 behaviour would be to drop the system into a UEFI config environment or similar, but i'm not sure how that would work on a server. Suppose we could have a nvram flag to control if it drops to a shell or not by default.

@jk-ozlabs
Copy link
Member

How about diag to drop to a shell on boot?

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

4 participants