* Create hassio-rauc.service * Update hassio-supervisor.service * Update hassio-rauc.service * Update hassio-supervisor.service * Update and rename hassio-rauc.service to rauc-good.service * Update rauc-good.service * Create rauc-bad.service * Update rauc-bad.service * Update rauc-good.service * Update hassio-supervisor.service * Fix barebox recovery * Create title * Create title * Create action * Create title * Create action * Create 20-boot-system1 * Rename buildroot-external/barebox-env/menu/20-boot-system1/title to buildroot-external/barebox-env/menu/20-boot-system2title * Update and rename buildroot-external/barebox-env/menu/20-boot-system2title to buildroot-external/barebox-env/menu/20-boot-system1/title * Create title * Create action * Create action * Delete autoboot_timeout * Create editcmd * Update init * Update init * Fix barebox config * Update init * Update system0 * Update system1 * Barebox cleanups * Update init * Update init * Create 0001-get-devicetree-from-file.patch * Update ova_defconfig * Update system0 * Update system1 * Create 0001-add-i-argument-to.patch * Update barebox.config * Update rauc * Rename buildroot-external/board/ova/patches/dt-util/0001-get-devicetree-from-file.patch to buildroot-external/board/ova/patches/dt-utils/0001-get-devicetree-from-file.patch * Add script * fix barebox-state
37 lines
1.3 KiB
Diff
37 lines
1.3 KiB
Diff
From c9d56ea8fccf72e1c5d1f224f965e1a8e84d1b7f Mon Sep 17 00:00:00 2001
|
|
From: Pascal Vizeli <pvizeli@syshack.ch>
|
|
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("/mnt/boot/EFI/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("/mnt/boot/EFI/barebox/state.dtb"));
|
|
g_ptr_array_add(args, NULL);
|
|
|
|
sub = g_subprocess_newv((const gchar * const *)args->pdata,
|
|
--
|
|
2.7.4
|
|
|