Init changes#355
Conversation
Enabled recovery serial console (tested on kgpe-d16) Minor fix to kexec-boot to correct xen boot Remove busybox power utils
Until scripts are changed to use flashtool
|
Tested on x230 now too - slight weirdness with double Heads motd but Qubes 4rc5 USB install is good. |
| CONFIG_HALT=y | ||
| CONFIG_POWEROFF=y | ||
| CONFIG_REBOOT=y | ||
| # CONFIG_HALT is not set |
There was a problem hiding this comment.
Why were these removed?
There was a problem hiding this comment.
These interfere with the sysrq-based scripts in bin on x230. I think those work always (as long as the kernel has it enabled).
| CONFIG_LINUX_CONFIG=config/linux-x230.config | ||
|
|
||
| CONFIG_CRYPTSETUP=y | ||
| CONFIG_FLASHROM=y |
There was a problem hiding this comment.
I really should modify the x230-flash script to use flashtool. It is so much simpler than flashrom and takes up a fraction of the space.
| # Setup recovery serial shell | ||
| if [ ! -z "$CONFIG_BOOT_RECOVERY_SERIAL" ]; then | ||
| stty -F "$CONFIG_BOOT_RECOVERY_SERIAL" 115200 | ||
| pause_recovery 'Console recovery shell' \ |
There was a problem hiding this comment.
Does this require user intervension on every boot with CONFIG_BOOT_RECOVERY_SERIAL set?
There was a problem hiding this comment.
Nope - you can boot normally via generic-init through the internal serial connected to the BMC. This is just here to enable recovery shell access on the external serial port on the back of the motherboard (in cases when the BMC is not active or down). This allows you to flash openbmc when physically local to the machine. You can also do this remotely if you configure network-init-recovery as the network bootscript (same drop to recovery shell on ssh into the machine)
This PR moves the network initialization logic to a separate bootscript as well as introduces an optional recovery console in situations where multiple are available.
Tested on qemu-linuxboot, qemu-coreboot, kgpe-d16.