Branch: refs/heads/master Home: https://github.com/tianocore/edk2 Commit: a2ac0fea49996ab484c1a8761c234cc354f5a760 https://github.com/tianocore/edk2/commit/a2ac0fea49996ab484c1a8761c234cc354f5a760 Author: Miguel Flores Ruiz de Eguino <1889916+miguelf...@users.noreply.github.com> Date: 2025-05-26 (Mon, 26 May 2025)
Changed paths: M OvmfPkg/Library/GenericQemuLoadImageLib/GenericQemuLoadImageLib.c M OvmfPkg/Library/X86QemuLoadImageLib/X86QemuLoadImageLib.c Log Message: ----------- [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 <miguelf...@google.com> To unsubscribe from these emails, change your notification settings at https://github.com/tianocore/edk2/settings/notifications _______________________________________________ edk2-commits mailing list edk2-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/edk2-commits