rbutil: Fix setting bootloader "file" for Ipod bootloader.

On Ipods we use the bootloader "filename" to pass the mountpoint, which
is then used to determine the correct device to use.

Change-Id: I1dd2060ae9176bfdece9337160db08caf326e1f5
This commit is contained in:
Dominik Riebeling 2022-03-08 22:42:34 +01:00
parent 3cebc983a2
commit b1965b4197

View file

@ -307,6 +307,11 @@ void SelectiveInstallWidget::installBootloader(void)
blfilepath.append(RbSettings::value(RbSettings::Mountpoint).toString() blfilepath.append(RbSettings::value(RbSettings::Mountpoint).toString()
+ blfile.at(a)); + 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->setBlFile(blfilepath);
QUrl url(PlayerBuildInfo::instance()->value(PlayerBuildInfo::BootloaderUrl).toString() QUrl url(PlayerBuildInfo::instance()->value(PlayerBuildInfo::BootloaderUrl).toString()
+ PlayerBuildInfo::instance()->value(PlayerBuildInfo::BootloaderName).toString()); + PlayerBuildInfo::instance()->value(PlayerBuildInfo::BootloaderName).toString());