1
0
Fork 0
forked from len0rd/rockbox

rbutil: Fix ipodpatcher bootloader uninstall.

Fix mountpoint not passed and sectorbuf not initialized properly.

Change-Id: Ifa9d9e159767b20a51841ee422be59feca95c757
This commit is contained in:
Dominik Riebeling 2022-03-12 21:45:07 +01:00
parent 5c7b0e071f
commit ce70e34476
2 changed files with 11 additions and 5 deletions

View file

@ -473,6 +473,11 @@ void RbUtilQt::uninstallBootloader(void)
blfilepath.append(RbSettings::value(RbSettings::Mountpoint).toString()
+ blfile.at(a));
}
// on devices without a bootloader file we use the mointpoint. The
// installer will use that to determine the correct device.
if(blfile.isEmpty()) {
blfilepath.append(RbSettings::value(RbSettings::Mountpoint).toString());
}
bl->setBlFile(blfilepath);
bl->setLogfile(RbSettings::value(RbSettings::Mountpoint).toString()
+ "/.rockbox/rbutil.log");