From 4429923681b8950953adb1f81ed5e73082d370d2 Mon Sep 17 00:00:00 2001 From: Eric Curtin Date: Mon, 26 Jun 2023 11:44:32 +0100 Subject: [PATCH] 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 --- src/libostree/ostree-bootloader-aboot.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libostree/ostree-bootloader-aboot.c b/src/libostree/ostree-bootloader-aboot.c index c21bd67c89..c125ca5983 100644 --- a/src/libostree/ostree-bootloader-aboot.c +++ b/src/libostree/ostree-bootloader-aboot.c @@ -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))