mirror of https://git.48k.eu/ogserver
rest: switch to use grub2 templates as base directory
use grub2 template for GET /mode to list boot modesmaster v1.2.5-24
parent
bff3d1dc9d
commit
24e70ac3ff
|
@ -1140,10 +1140,10 @@ static int og_get_boot_modes(struct list_head *boot_mode_list)
|
||||||
struct dirent *dent;
|
struct dirent *dent;
|
||||||
DIR *d;
|
DIR *d;
|
||||||
|
|
||||||
d = opendir(OG_TFTP_TMPL_PATH);
|
d = opendir(OG_TFTP_TMPL_PATH_UEFI);
|
||||||
if (!d) {
|
if (!d) {
|
||||||
syslog(LOG_ERR, "Cannot open directory %s (%s:%d)\n",
|
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;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue