From b0d5633866e9b21abdf44c86cf7836efa8c0394f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9e=20Ravier?= Date: Tue, 11 Feb 2025 17:59:33 +0100 Subject: [PATCH] WIP: tier-0/bootupd: Copy GRUB from new location in /usr We should teach bootupd how to handle the new location for GRUB & Shim. Workaround it until that happens. See: https://gitlab.com/fedora/bootc/tracker/-/issues/61 See: https://fedoraproject.org/wiki/Changes/BootLoaderUpdatesPhase1 --- tier-0/bootupd.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tier-0/bootupd.yaml b/tier-0/bootupd.yaml index ef54f18..711dee7 100644 --- a/tier-0/bootupd.yaml +++ b/tier-0/bootupd.yaml @@ -24,5 +24,9 @@ postprocess: - | #!/bin/bash set -xeuo pipefail + + # Copy GRUB2 from new location to /usr/lib/ostree-boot + cp -a /usr/lib/grub2/*/EFI/fedora/* /usr/lib/ostree-boot/efi/EFI/fedora/ + # Transforms /usr/lib/ostree-boot into a bootupd-compatible update payload /usr/bin/bootupctl backend generate-update-metadata