mirror of
https://github.com/ostreedev/ostree.git
synced 2025-01-02 01:18:23 +03:00
Compare commits
2 Commits
f49c628738
...
ec69f0c5a2
Author | SHA1 | Date | |
---|---|---|---|
|
ec69f0c5a2 | ||
|
a76d28f07f |
@ -114,6 +114,7 @@ create_config_from_boot_loader_entries (OstreeBootloaderUboot *self, int bootver
|
||||
for (int i = 0; i < boot_loader_configs->len; i++)
|
||||
{
|
||||
g_autofree char *index_suffix = NULL;
|
||||
g_autofree char *bootdir = NULL;
|
||||
if (i == 0)
|
||||
index_suffix = g_strdup ("");
|
||||
else
|
||||
@ -129,6 +130,9 @@ create_config_from_boot_loader_entries (OstreeBootloaderUboot *self, int bootver
|
||||
}
|
||||
g_ptr_array_add (new_lines, g_strdup_printf ("kernel_image%s=/boot%s", index_suffix, val));
|
||||
|
||||
bootdir = strndup (val, strrchr(val, '/') - val);
|
||||
g_ptr_array_add (new_lines, g_strdup_printf ("bootdir%s=%s/", index_suffix, bootdir));
|
||||
|
||||
val = ostree_bootconfig_parser_get (config, "initrd");
|
||||
if (val)
|
||||
g_ptr_array_add (new_lines, g_strdup_printf ("ramdisk_image%s=/boot%s", index_suffix, val));
|
||||
|
Loading…
Reference in New Issue
Block a user