diff options
| author | Miguel Flores Ruiz de Eguino <1889916+miguelfrde@users.noreply.github.com> | 2025-05-24 00:19:22 +0300 |
|---|---|---|
| committer | Ard Biesheuvel <workofard@gmail.com> | 2025-05-26 19:31:34 +0300 |
| commit | a2ac0fea49996ab484c1a8761c234cc354f5a760 (patch) | |
| tree | 2c925f04c97fef6768e5a1a58ff70ebb53d537a0 /MdeModulePkg/Library/DisplayUpdateProgressLibGraphics/DisplayUpdateProgressLibGraphics.c | |
| parent | 93aeaa0812b75abb8637ec1a8f9883657f818a22 (diff) | |
| download | edk2-a2ac0fea49996ab484c1a8761c234cc354f5a760.tar.xz | |
[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 'MdeModulePkg/Library/DisplayUpdateProgressLibGraphics/DisplayUpdateProgressLibGraphics.c')
0 files changed, 0 insertions, 0 deletions
