new file mode 100644
@@ -0,0 +1,41 @@
+From 48a0c8b2e647fe34cc53a4b55a43d4106fe45735 Mon Sep 17 00:00:00 2001
+From: Rhidian De Wit <rhidian.dewit@openpixelsystems.org>
+Date: Mon, 24 Aug 2026 10:04:24 +0200
+Subject: [PATCH] Check if bootcurrent is valid before using it
+
+Upstream: https://github.com/rauc/rauc/pull/2029
+
+Signed-off-by: Rhidian De Wit <rhidian.dewit@openpixelsystems.org>
+---
+ src/bootloaders/efi.c | 15 +++++++++------
+ 1 file changed, 9 insertions(+), 6 deletions(-)
+
+diff --git a/src/bootloaders/efi.c b/src/bootloaders/efi.c
+index 19224118..65875c9f 100644
+--- a/src/bootloaders/efi.c
++++ b/src/bootloaders/efi.c
+@@ -625,12 +625,15 @@ gchar *r_efi_get_current_bootname(RaucConfig *config, GError **error)
+ return NULL;
+ }
+
+- GHashTableIter iter;
+- g_hash_table_iter_init(&iter, config->slots);
+- RaucSlot *slot = NULL;
+- while (g_hash_table_iter_next(&iter, NULL, (gpointer*) &slot)) {
+- if (g_strcmp0(slot->bootname, bootcurrent->name) == 0) {
+- return slot->bootname;
++ if (bootcurrent != NULL)
++ {
++ GHashTableIter iter;
++ g_hash_table_iter_init(&iter, config->slots);
++ RaucSlot *slot = NULL;
++ while (g_hash_table_iter_next(&iter, NULL, (gpointer*) &slot)) {
++ if (g_strcmp0(slot->bootname, bootcurrent->name) == 0) {
++ return slot->bootname;
++ }
+ }
+ }
+
+--
+2.51.0
+
Signed-off-by: Rhidian De Wit <rhidian.dewit@openpixelsystems.org> --- ...bootcurrent-is-valid-before-using-it.patch | 41 +++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 package/rauc/0001-Check-if-bootcurrent-is-valid-before-using-it.patch