Skip to content

Commit

Permalink
Add '.conf' to systemd-boot entry
Browse files Browse the repository at this point in the history
Fixes #7
  • Loading branch information
johnramsden committed Mar 18, 2020
1 parent d8d089f commit 4d9139e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/libze_plugin/libze_plugin_systemdboot.c
Original file line number Diff line number Diff line change
Expand Up @@ -714,7 +714,7 @@ get_loader_line_from_regex(libze_handle *lzeh, void *data, char const line[LIBZE

char replace_two[LIBZE_MAX_PATH_LEN] = "";

int rlen = snprintf(replace_two, LIBZE_MAX_PATH_LEN, "\\1%s-%s\n", SYSTEMDBOOT_ENTRY_PREFIX,
int rlen = snprintf(replace_two, LIBZE_MAX_PATH_LEN, "\\1%s-%s.conf\n", SYSTEMDBOOT_ENTRY_PREFIX,
rmd->be_name);
if (rlen >= LIBZE_MAX_PATH_LEN) {
ret = libze_error_set(lzeh, ret, "Exceeded max path length for regex buffer.\n");
Expand Down

0 comments on commit 4d9139e

Please sign in to comment.