Fixes #36847 - Use initrd variable for Debian ipxe
Previously the filename was hardcoded, but the OS layer actually provides this filename as a variable. This should match the actual filename on mirrors.
This got a bit bigger, but I think this ends up cleaning it up nicely.
Revisiting this, I was wondering what if we even need to specify the initrd in the kernel line anyway. We already specify a full URL in a separte initrd command. Could we perhaps drop it? https://ipxe.org/cmd/imgfetch writes:
For older kernels (before Linux 5.7), you will need to add the kernel command-line argument initrd=initrd.magic when booting in UEFI mode.
Debian Buster still ships an older 4.x kernel while Debian Bullseye ships a 5.10 kernel. Any thoughts on what to do? I'm tempted to drop the whole initrd from the kernel line.
Debian Buster still ships an older 4.x kernel while
Debian buster is EOL since June 30 2024 but:
- Buster (10): 4.19
- Ubuntu 18.04 LTS (Bionic Beaver): 4.15
- Ubuntu 20.04 LTS (Focal Fossa): 5.4
- RHEL 7 (v7.0): 3.10
- RHEL 8 (v8.0): 4.18
- SLES 12 (SP5): 4.12
Note it never used the initrd.magic before so I really question its use. Do you have an ipxe env you test with?