syslinux_parse: Always output comments even if no entries are found.
This commit is contained in:
parent
8f5ebb1245
commit
b23635fcff
1 changed files with 7 additions and 6 deletions
|
@ -1430,6 +1430,13 @@ config_file (struct output_buffer *outbuf,
|
|||
print_string ("\n");
|
||||
}
|
||||
|
||||
if (menu.comments)
|
||||
{
|
||||
err = print (outbuf, menu.comments, grub_strlen (menu.comments));
|
||||
if (err)
|
||||
return err;
|
||||
}
|
||||
|
||||
if (menu.timeout == 0 && menu.entries && menu.def)
|
||||
{
|
||||
err = print_entry (outbuf, &menu, menu.def);
|
||||
|
@ -1446,12 +1453,6 @@ config_file (struct output_buffer *outbuf,
|
|||
if (err)
|
||||
return err;
|
||||
print_string ("\n");
|
||||
if (menu.comments)
|
||||
{
|
||||
err = print (outbuf, menu.comments, grub_strlen (menu.comments));
|
||||
if (err)
|
||||
return err;
|
||||
}
|
||||
|
||||
if (menu.def)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue