forked from len0rd/rockbox
rolo: Write bootdata regardless of whether running from root or redirect
As long as bootdata is valid, write it. Change-Id: I63114b835d43c800217d2b688f9f7e2c2fb34c15
This commit is contained in:
parent
ec8fb871f0
commit
56dd7ead63
1 changed files with 2 additions and 3 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue