Update CP installer to allow continuing even if boot drive doesn't match

This commit is contained in:
Melissa LeBlanc-Williams 2024-03-25 14:20:04 -07:00
parent be59de5d4a
commit ba210947eb

View file

@ -618,8 +618,9 @@ export class CPInstallButton extends InstallButton {
return;
}
if (bootloaderVolume && bootloaderVolume != dirHandle.name) {
alert(`The selected drive named ${dirHandle.name} does not match the expected name of ${bootloaderVolume}. Please select the correct drive.`);
return;
if (!confirm(`The selected drive named ${dirHandle.name} does not match the expected name of ${bootloaderVolume}. Continue anyways?`)) {
return;
}
}
if (!await this._verifyPermission(dirHandle)) {
alert("Unable to write to the selected folder");