summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDana Conrad <dconrad@fastmail.com>2024-08-24 00:52:03 +0000
committerSolomon Peachy <pizza@shaftnet.org>2024-08-27 07:43:25 -0400
commit56dd7ead63c0ced711e86d9c69c1d632596760b9 (patch)
tree2a8b7ab9649c8cb91f3c039293c2d0d23c07aa8f
parentec8fb871f0e1ef72c1f3f84f689d17d5978b6ca9 (diff)
downloadrockbox-56dd7ead63.tar.gz
rockbox-56dd7ead63.zip
rolo: Write bootdata regardless of whether running from root or redirect
As long as bootdata is valid, write it. Change-Id: I63114b835d43c800217d2b688f9f7e2c2fb34c15
-rw-r--r--firmware/rolo.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/firmware/rolo.c b/firmware/rolo.c
index f9b0cc9e61..0990b2732f 100644
--- a/firmware/rolo.c
+++ b/firmware/rolo.c
@@ -250,9 +250,8 @@ int rolo_load(const char* filename)
err = LOAD_FIRMWARE(filebuf, filename, filebuf_size);
#if defined(HAVE_BOOTDATA) && !defined(SIMULATOR)
- /* write the bootdata as if rolo were the bootloader
- * FIXME: this won't work for root redirect... */
- if (!strcmp(filename, BOOTDIR "/" BOOTFILE) && boot_data_valid)
+ // Write bootdata as long as the existing bootdata is valid
+ if (boot_data_valid)
{
int volume = 0;