Due to bugs in my laptop's BIOS (or some such thing), I use the boot flag
nox2apic when I know I need to attach an external monitor. However, when this flag is enabled, pressing some multimedia hardware buttons cause the system to hang. Until I can correctly track down these bugs and do the responsible thing, I'd like Grub2 to generate two entries per installed kernel:
- one with
nox2apicenabled, to be used when I might attach a monitor
- one with default flags, to be used when I'm on the go
/etc/grub.d suggests I could modify one of the loops in
10_linux to emit the appropriate entries. Is this the best way? Since I'm worried that I'd have to grok most of this file, is there a quicker solution?