Skip to content

Commit

Permalink
overlay/15fcos: upgrade bootloader on aarch64 at boot
Browse files Browse the repository at this point in the history
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
bgilbert committed Mar 20, 2023
1 parent 0560af6 commit 8ce6fd6
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
3 changes: 3 additions & 0 deletions overlay.d/15fcos/usr/lib/systemd/system-preset/45-fcos.preset
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
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

0 comments on commit 8ce6fd6

Please sign in to comment.