GRUB keeps the firmware's text console; phone-home back to HTTP
Lab, Secure Boot VM: the deployed Debian booted under Secure Boot through the chainload, but its console was garbled after the network GRUB had switched the display mode; GRUB menus now use the firmware's text console (terminal_output console), which also suits serial/SOL. phone-home over HTTPS failed once on that first boot (TLS: bad record MAC on the region's side; the same request works from the machine since), and cloud-init spends its 10 tries within milliseconds. Its content is not secret and its token only works from the machine's address, so it goes over HTTP again. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
c494c7b226
commit
b2ad0210bf
3 files changed
+15
-7
No files matched your search
@@ -24,6 +24,7 @@ import (
|
||||
)
|
||||
|
||||
const grubDispatch = `# generated by rollcall: the machine's own menu, else the one for unknown machines
|
||||
terminal_output console
|
||||
set timeout=8
|
||||
configfile $prefix/grub.cfg-$net_default_mac
|
||||
configfile $prefix/grub.cfg-default
|
||||
@@ -90,6 +91,10 @@ func pxelinuxToGrub(body string) string {
|
||||
}
|
||||
var b strings.Builder
|
||||
b.WriteString("# generated by rollcall from the pxelinux menu\n")
|
||||
// the firmware's text console: GRUB does not switch the display mode, so the OS
|
||||
// it starts gets the firmware's own (OVMF showed a garbled console after a switch),
|
||||
// and serial/SOL consoles see the menu
|
||||
b.WriteString("terminal_output console\n")
|
||||
fmt.Fprintf(&b, "set default=%d\nset timeout=%d\n", def, timeout)
|
||||
for _, e := range entries {
|
||||
fmt.Fprintf(&b, "menuentry %s {\n", grubQuote(e.label))
|
||||
|
||||
Reference in new issue
Block a user