From c9d56ea8fccf72e1c5d1f224f965e1a8e84d1b7f Mon Sep 17 00:00:00 2001 From: Pascal Vizeli Date: Wed, 9 May 2018 21:54:58 +0200 Subject: [PATCH 1/1] add -i argument to barebox-state call --- src/bootchooser.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/bootchooser.c b/src/bootchooser.c index d5efc0c..c57c2f7 100644 --- a/src/bootchooser.c +++ b/src/bootchooser.c @@ -77,6 +77,9 @@ static gboolean barebox_state_get(const gchar* bootname, BareboxSlotState *bb_st g_ptr_array_add(args, g_strdup_printf(BOOTSTATE_PREFIX ".%s.priority", bootname)); g_ptr_array_add(args, g_strdup("-g")); g_ptr_array_add(args, g_strdup_printf(BOOTSTATE_PREFIX ".%s.remaining_attempts", bootname)); + + g_ptr_array_add(args, g_strdup("-i")); + g_ptr_array_add(args, g_strdup("/etc/barebox-state.dtb")); g_ptr_array_add(args, NULL); sub = g_subprocess_newv((const gchar * const *)args->pdata, @@ -170,6 +173,9 @@ static gboolean barebox_state_set(GPtrArray *pairs, GError **error) g_ptr_array_add(args, g_strdup("-s")); g_ptr_array_add(args, g_strdup(pairs->pdata[i])); } + + g_ptr_array_add(args, g_strdup("-i")); + g_ptr_array_add(args, g_strdup("/etc/barebox-state.dtb")); g_ptr_array_add(args, NULL); sub = g_subprocess_newv((const gchar * const *)args->pdata, -- 2.7.4