]> git.ipfire.org Git - thirdparty/grub.git/commit
dl: Provide a fake grub_dl_set_persistent() and grub_dl_is_persistent() for the emu...
authorDaniel Axtens <dja@axtens.net>
Tue, 10 Jun 2025 15:50:38 +0000 (21:20 +0530)
committerDaniel Kiper <daniel.kiper@oracle.com>
Thu, 26 Jun 2025 15:19:25 +0000 (17:19 +0200)
commitba8eadde6be1a411e838d0914277bdc3f317cda1
tree44867c8e8d3daf2be6dc0fe2b40ce63c9f71f7b8
parent409e72cedf68cabb1af99021a959a7990fb18b0a
dl: Provide a fake grub_dl_set_persistent() and grub_dl_is_persistent() for the emu target

Trying to start grub-emu with a module that calls grub_dl_set_persistent()
and grub_dl_is_persistent() will crash because grub-emu fakes modules and
passes NULL to the module init function.

Provide an empty function for the emu case.

Fixes: ee7808e2197c (dl: Add support for persistent modules)
Signed-off-by: Daniel Axtens <dja@axtens.net>
Signed-off-by: Sudhakar Kuppusamy <sudhakar@linux.ibm.com>
Reviewed-by: Stefan Berger <stefanb@linux.ibm.com>
Reviewed-by: Avnish Chouhan <avnish@linux.ibm.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
include/grub/dl.h