syslinux: Adapt to bootloader UI changes

This was a side-effect of the bootloader UI changes in bug 739416,
but should now be sufficiently future-proofed with code comments.
This commit is contained in:
Matthew Barnes committed 2014-11-10 21:31:32 -05:00
1 parent bbd3fd7a22
commit 5c9e83c02c
2 files changed
+11 -2

No files matched your search

+8 -2
View File
@@ -206,8 +206,14 @@ _ostree_bootloader_syslinux_write_config (OstreeBootloader *bootloader,
(g_str_has_prefix (line, "DEFAULT ")))
{
saw_default = TRUE;
if (g_str_has_prefix (line, "DEFAULT ostree:"))
regenerate_default = TRUE;
/* XXX Searching for patterns in the title is rather brittle,
* but this hack is at least noted in the code that builds
* the title to hopefully avoid regressions. */
if (g_str_has_prefix (line, "DEFAULT ostree:") || /* old format */
strstr (line, "(ostree") != NULL) /* new format */
{
regenerate_default = TRUE;
}
skip = TRUE;
}