Skip to content

Commit bd26643

Browse files
committed
rpi: fail explictily
1 parent d1ce920 commit bd26643

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/bootloaders/raspberrypi.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -406,6 +406,12 @@ gboolean r_raspberrypi_set_state(RaucSlot *slot, gboolean good, GError **error)
406406
"Failed to set other persistent: ");
407407
return FALSE;
408408
}
409+
} else {
410+
g_set_error(
411+
error,
412+
R_BOOTCHOOSER_ERROR,
413+
R_BOOTCHOOSER_ERROR_NOT_SUPPORTED,
414+
"Marking %s slot %s is not supported",(slot == primary) ? "current" : "other", good ? "good" : "bad");
409415
}
410416

411417
return TRUE;

0 commit comments

Comments
 (0)