bootloader: Pass "options" to aboot bootloader backend

aboot-deploy must know where the next root filesystem to boot is to set
up a symlink /ostree/root.a or /ostree/root.b , this location is in the
ostree= part of these passed in options.

Signed-off-by: Eric Curtin <ecurtin@redhat.com>
This commit is contained in:
Eric Curtin 2023-06-26 11:44:32 +01:00
parent 363a1f14a8
commit 4429923681

View File

@ -161,7 +161,8 @@ _ostree_bootloader_aboot_post_bls_sync (OstreeBootloader *bootloader, int bootve
g_autofree char *path_str = g_file_get_path (self->sysroot->path);
const char *const aboot_argv[] = { "aboot-deploy", "-r", path_str, "-c", abootcfg, aboot, NULL };
const char *const aboot_argv[]
= { "aboot-deploy", "-r", path_str, "-c", abootcfg, "-o", options, aboot, NULL };
int estatus;
if (!g_spawn_sync (NULL, (char **)aboot_argv, NULL, G_SPAWN_SEARCH_PATH, NULL, NULL, NULL, NULL,
&estatus, error))