]> git.ipfire.org Git - thirdparty/grub.git/commit
loader/multiboot: Do not add modules before successful download
authorValentin Gehrke <valentin.gehrke@kernkonzept.com>
Wed, 30 Oct 2024 17:12:56 +0000 (18:12 +0100)
committerDaniel Kiper <daniel.kiper@oracle.com>
Thu, 31 Oct 2024 15:29:01 +0000 (16:29 +0100)
commitdd743ba42d0fd6679fd978d6bbc2f84c5cc3ea15
tree33ef5bf17ec616888cb8d18fe321ebe36a6cdfbc
parent9a9082b501f68bc1c6d68c0e30a5118f03d05ed4
loader/multiboot: Do not add modules before successful download

Multiboot modules that could not be read successfully, e.g. via network,
should not be added to the list of modules to forward to the operating
system that is to be booted subsequently.

This patch is necessary because even if a grub.cfg checks whether or not
a module was successfully downloaded, it is futile to retry a failed
download as the corrupted module will be forwarded either way.

Signed-off-by: Valentin Gehrke <valentin.gehrke@kernkonzept.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/loader/multiboot.c