diff options
author | Miguel Flores Ruiz de Eguino <1889916+miguelfrde@users.noreply.github.com> | 2025-05-23 14:19:22 -0700 |
---|---|---|
committer | Ard Biesheuvel <workofard@gmail.com> | 2025-05-26 18:31:34 +0200 |
commit | a2ac0fea49996ab484c1a8761c234cc354f5a760 (patch) | |
tree | 2c925f04c97fef6768e5a1a58ff70ebb53d537a0 /BaseTools/Source/Python/Ecc | |
parent | 93aeaa0812b75abb8637ec1a8f9883657f818a22 (diff) | |
download | edk2-a2ac0fea49996ab484c1a8761c234cc354f5a760.zip edk2-a2ac0fea49996ab484c1a8761c234cc354f5a760.tar.gz edk2-a2ac0fea49996ab484c1a8761c234cc354f5a760.tar.bz2 |
[QemuLoadImageLib] Prefix initrd=initrd in cmdline
The current implementation causes issues when the command line contains
arguments to be passed to /init after "--". Instead we can prepend that
at the beginning of the cmdline.
From: https://www.kernel.org/doc/html/v6.12/admin-guide/kernel-parameters.html
> Everything after “--” is passed as an argument to init.
Example of problematic case:
```
Kernel command line: panic=0 init=/init console=ttyS0 earlyprintk=ttyS0 -- echo hello | nc -l -p 8080 initrd=initrd
[init] running command echo hello | nc -l -p 8080 initrd=initrd
...
[init] running command echo hello | nc -l -p 8080 initrd=initrd
nc: exec initrd=initrd: No such file or directory
```
Signed-off-by: Miguel Flores Ruiz de Eguino <miguelfrde@google.com>
Diffstat (limited to 'BaseTools/Source/Python/Ecc')
0 files changed, 0 insertions, 0 deletions