Hello, Tomas Volf <~@wolfsden.cz> skribis:
>> Good point! kexec_file_load(2) can only be given one initrd, so I >> suppose it cannot support extra initrds. >> >> That’s something we should at least document and probably protect >> against. > > Based on the kexec_file_load's man page it looks like it takes a file > descriptor. Is there a technical reason why we cannot just construct > the unified initrd in memory by overlaying the extra-initrd over the > initrd (which is what GRUB does anyway) and feed the result to the > kernel via a pipe? Woow. Everything’s possible, but it sounds non-trivial (possibly more code than kexec support in its current form!). In the meantime, we should at least document the limitation and/or skip the feature entirely when ‘extra-initrd’ is specified. Ludo’.