-
Notifications
You must be signed in to change notification settings - Fork 155
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 on aarch64 at boot
On aarch64, kernel 6.2 won't boot with older versions of GRUB. In preparation for switching to the new kernel, add a systemd service that uses bootupd to update the bootloader on aarch64 systems. Revert this after the next barrier release. For coreos/fedora-coreos-tracker#1441.
- Loading branch information
Showing
2 changed files
with
18 additions
and
0 deletions.
There are no files selected for viewing
3 changes: 3 additions & 0 deletions
3
overlay.d/15fcos/usr/lib/systemd/system-preset/45-fcos.preset
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 |
---|---|---|
@@ -1,3 +1,6 @@ | ||
enable coreos-check-ssh-keys.service | ||
# Check if cgroupsv1 is still being used | ||
enable coreos-check-cgroups.service | ||
# Upgrade aarch64 bootloader to avoid | ||
# https://github.com/coreos/fedora-coreos-tracker/issues/1441 | ||
enable coreos-bootupctl-update-aarch64.service |
15 changes: 15 additions & 0 deletions
15
overlay.d/15fcos/usr/lib/systemd/system/coreos-bootupctl-update-aarch64.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,15 @@ | ||
# Remove after the next barrier release | ||
# https://github.com/coreos/fedora-coreos-tracker/issues/1441 | ||
|
||
[Unit] | ||
Description=Update aarch64 Bootloader | ||
ConditionArchitecture=arm64 | ||
ConditionFirmware=uefi | ||
|
||
[Service] | ||
Type=oneshot | ||
ExecStart=/usr/bin/bootupctl update | ||
RemainAfterExit=yes | ||
|
||
[Install] | ||
WantedBy=multi-user.target |