]> git.proxmox.com Git - mirror_edk2.git/commit
OvmfPkg/LinuxInitrdDynamicShellCommand: bail if initrd already exists
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Tue, 3 Mar 2020 13:37:49 +0000 (14:37 +0100)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Wed, 4 Mar 2020 09:26:45 +0000 (09:26 +0000)
commitecb30848fdc96e146c997da2a4898a96d627b477
tree5c5f533b474e40a7a329c349a3e41f8b85520eb4
parentd55cfdc51f93b6622c3780d4cc2ba2769c154a15
OvmfPkg/LinuxInitrdDynamicShellCommand: bail if initrd already exists

Before taking any actions, check if an instance of the LoadFile2 exists
already on the Linux initrd media GUID device path, and whether it was
provided by this command. If so, abort, since no duplicate instances of
the device path should exist.

Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=2564
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
OvmfPkg/LinuxInitrdDynamicShellCommand/LinuxInitrdDynamicShellCommand.c
OvmfPkg/LinuxInitrdDynamicShellCommand/LinuxInitrdDynamicShellCommand.uni