From 24e70ac3ff167f0d8342e57252fc737083ae02ab Mon Sep 17 00:00:00 2001 From: OpenGnSys Support Team Date: Thu, 31 Oct 2024 16:44:10 +0100 Subject: rest: switch to use grub2 templates as base directory use grub2 template for GET /mode to list boot modes --- src/rest.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/rest.c') diff --git a/src/rest.c b/src/rest.c index 27af4d1..e3d9aa7 100644 --- a/src/rest.c +++ b/src/rest.c @@ -1140,10 +1140,10 @@ static int og_get_boot_modes(struct list_head *boot_mode_list) struct dirent *dent; DIR *d; - d = opendir(OG_TFTP_TMPL_PATH); + d = opendir(OG_TFTP_TMPL_PATH_UEFI); if (!d) { syslog(LOG_ERR, "Cannot open directory %s (%s:%d)\n", - OG_TFTP_TMPL_PATH, __func__, __LINE__); + OG_TFTP_TMPL_PATH_UEFI, __func__, __LINE__); return -1; } -- cgit v1.2.3-18-g5258