-
Notifications
You must be signed in to change notification settings - Fork 158
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
overlay/15fcos: upgrade bootloader for secureboot-enabled systems
kernel 6.9 won't boot on system installed prior to F39, as shim is too old. Shim 15.8-3 reached stable on 2023-03-21, so any system using secureboot installed before that won't be able to boot kernel 6.9 See coreos/fedora-coreos-tracker#1752 fedora-silverblue/issue-tracker#543
- Loading branch information
1 parent
6d566d5
commit 2fad4a6
Showing
3 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
overlay.d/15fcos/usr/lib/systemd/system/coreos-bootupctl-update-secureboot.service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Remove after the next barrier release | ||
# https://github.com/coreos/fedora-coreos-tracker/issues/1752 | ||
|
||
[Unit] | ||
Description=Update Bootloader for Secure Boot-enabled systems | ||
ConditionSecurity=uefi-secureboot | ||
|
||
# make sure to run after the aleph file is fixed | ||
# see https://github.com/coreos/fedora-coreos-tracker/issues/1724 | ||
After=coreos-fix-aleph-file.service | ||
Requires=coreos-fix-aleph-file.service | ||
|
||
[Service] | ||
Type=oneshot | ||
ExecStart=/usr/libexec/coreos-update-bootloader | ||
RemainAfterExit=yes | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/bash | ||
set -euo pipefail | ||
|
||
# This script update the bootloader using bootupd | ||
# and also detect RAID-1 setups as those requires | ||
# extra steps | ||
|
||
|
||
# bootupd don't support RAID-1 setups | ||
# https://github.com/coreos/fedora-coreos-tracker/issues/1485 | ||
if test -f /dev/disk/by-label/esp-1 && test -f /dev/disk/by-label/esp-2; then | ||
mount /dev/disk/by-label/esp-1 /boot/efi | ||
cp -rp /usr/lib/bootupd/updates/EFI /boot/efi | ||
umount /boot/efi | ||
mount /dev/disk/by-label/esp-2 /boot/efi | ||
cp -rp /usr/lib/bootupd/updates/EFI /boot/efi | ||
umount /boot/efi | ||
fi | ||
|
||
# Regular case | ||
bootupctl update |