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
This commit is contained in:
Timothée Ravier 2025-02-11 17:59:33 +01:00
parent 3374cd8842
commit b0d5633866
1 changed files with 4 additions and 0 deletions

View File

@ -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