Qubes-dist-upgrade breaks when multiple “Qubes” boot menu entries are present #7004
Labels
C: dist upgrade
The code and tools that support upgrading in-place from one Qubes OS release to another
diagnosed
Technical diagnosis has been performed (see issue comments).
P: default
Priority: default. Default priority for new issues, to be replaced given sufficient information.
r4.0-dom0-cur-test
T: bug
Type: bug report. A problem or defect resulting in unintended behavior in something that exists.
Milestone
How to file a helpful issue
Reported at https://forum.qubes-os.org/t/qubes-dist-upgrade-breaks-when-multiple-qubes-boot-menu-entries-are-present/7203
Qubes OS release
R4.1
Brief summary
For reasons™ I currently have multiple EFI boot entries that contain the text “Qubes”:
Boot0000* Qubes
Boot0001* Qubes 4.0
[...]
During an in-place upgrade with qubes-dist-upgrade, the EFI menu is updated in stage 5 of the update process.
For me, this stage failed with error message “Invalid bootnum value0000\n0001”.
The reason is that the upgrade script searches for the correct boot entry by issuing the command efibootmgr -v | grep "Qubes" | awk '{print $1}'.
In case of multiple matching lines this returns more than one number, causing the error.
Steps to reproduce
See above.
Expected behavior
Handle multiple boot entries correctly (adjust only one)
Actual behavior
Broken setup.
The text was updated successfully, but these errors were encountered: