Repository navigation
[26.05] thunderbird-latest-unwrapped: 155.0 -> 156.0 - #564120
Conversation
efibootmgr rejects -o when BootOrder contains IDs without corresponding BootXXXX variables (which can come from certain BIOS implementations). Fix by recreating Limine entry at previous position using -c --index, or use -C if Limine was not in BootOrder. (cherry picked from commit 4dd37d8)
(cherry picked from commit a8ef914)
(cherry picked from commit fc7b58b)
(cherry picked from commit 3e08ca4)
There was a problem hiding this comment.
The PR's base branch is set to staging-next-26.05, but 6 commits from the release-26.05 branch are included. Make sure you know the right base branch for your changes, then:
- If the changes should go to the
release-26.05branch, change the base branch. - If the changes should go to the
staging-next-26.05branch, rebase your PR onto the correct merge-base:# git rebase --onto $(git merge-base upstream/staging-next-26.05 HEAD) $(git merge-base upstream/release-26.05 HEAD) git rebase --onto 087cd22e10f173d1a43fec9d19364de37b0c5f91 0cf260908aba79f37f1cbc87821a7eb7ae78901b git push --force-with-lease
There was a problem hiding this comment.
This report is automatically generated by the PR / Check / cherry-pick CI workflow.
Some of the commits in this PR require the author's and reviewer's attention.
Please follow the backporting guidelines and cherry-pick with the -x flag.
This requires changes to the unstable master and staging branches first, before backporting them.
Occasionally, commits are not cherry-picked at all, for example when updating minor versions of packages which have already advanced to the next major on unstable.
These commits can optionally be marked with a Not-cherry-picked-because: <reason> footer.
Sometimes it is not possible to cherry-pick exactly the same patch.
This most frequently happens when resolving merge conflicts.
The range-diff will help to review the resolution of conflicts.
If you need to merge this PR despite the warnings, please dismiss this review shortly before merging.
Warning
Difference between d932465 and original 4dd37d8 may warrant inspection.
Show diff
@@ Commit message
Fix by recreating Limine entry at previous position using -c --index, or use -C if Limine was not in BootOrder.
+ (cherry picked from commit 4dd37d80c3de1be68418ac940ffe2774dd517081)
+
## nixos/modules/system/boot/loader/limine/limine-install.py ##
@@ nixos/modules/system/boot/loader/limine/limine-install.py: def install_bootloader() -> None:
- boot_order = re.findall(
- r"BootOrder: ((?:[0-9a-fA-F]{4},?)*)", efibootmgr_output
- )[0]
-+ normalized_boot_order = boot_order.upper().split(",")
-+ create_options = ["-C"]
+ # If there's already a Limine entry, replace it
+ if limine_boot_entry:
+ boot_order = re.findall(r'BootOrder: ((?:[0-9a-fA-F]{4},?)*)', efibootmgr_output)[0]
++ normalized_boot_order = boot_order.upper().split(',')
++ create_options = ['-C']
+ if limine_boot_entry.upper() in normalized_boot_order:
+ create_options = [
-+ "-c",
-+ "--index",
++ '-c',
++ '--index',
+ str(normalized_boot_order.index(limine_boot_entry.upper())),
+ ]
- efibootmgr_output = subprocess.check_output(
- [
+ efibootmgr_output = subprocess.check_output([
+ efibootmgr,
@@ nixos/modules/system/boot/loader/limine/limine-install.py: def install_bootloader() -> None:
- efibootmgr_output = subprocess.check_output(
- [
+
+ efibootmgr_output = subprocess.check_output([
efibootmgr,
-- "-c",
+- '-c',
+ *create_options,
- "-b",
- limine_boot_entry,
- "-d",
-@@ nixos/modules/system/boot/loader/limine/limine-install.py: def install_bootloader() -> None:
- f"\\efi\\limine\\{boot_file}",
- "-L",
- "Limine",
-- "-o",
-- boot_order,
- ],
- stderr=subprocess.STDOUT,
- universal_newlines=True,
+ '-b', limine_boot_entry,
+ '-d', efi_disk,
+ '-p', efi_partition.removeprefix(efi_disk).removeprefix('p'),
+ '-l', f'\\efi\\limine\\{boot_file}',
+ '-L', 'Limine',
+- '-o', boot_order,
+ ], stderr=subprocess.STDOUT, universal_newlines=True)
+ else:
+ efibootmgr_output = subprocess.check_output([
Warning
Couldn't locate the cherry-picked commit's hash in the commit message of 385da87.
Warning
Couldn't locate the cherry-picked commit's hash in the commit message of 7be6137.
Warning
Couldn't locate the cherry-picked commit's hash in the commit message of 0cf2609.
Hint: The full diffs are also available in the runner logs with slightly better highlighting.
Bot-based backport to
release-26.05, triggered by a label in #564083.Before merging, ensure that this backport is acceptable for the release.
Even as a non-committer, if you find that it is not acceptable, leave a comment.
Tip
If you maintain all packages touched by this pull request, and they are all located under
pkgs/by-name/*, you can comment@NixOS/nixpkgs-merge-bot mergeto automatically merge this PR using thenixpkgs-merge-bot.