···250250251251 err = LOAD_FIRMWARE(filebuf, filename, filebuf_size);
252252#if defined(HAVE_BOOTDATA) && !defined(SIMULATOR)
253253- /* write the bootdata as if rolo were the bootloader
254254- * FIXME: this won't work for root redirect... */
255255- if (!strcmp(filename, BOOTDIR "/" BOOTFILE) && boot_data_valid)
253253+ // Write bootdata as long as the existing bootdata is valid
254254+ if (boot_data_valid)
256255 {
257256 int volume = 0;
258257