2022-10-14 13:45:40 -04:00
|
|
|
# KEEP THIS IN SYNC WITH https://github.com/coreos/fedora-coreos-config/blob/testing-devel/manifests/bootupd.yaml
|
|
|
|
|
# Integration with https://github.com/coreos/bootupd
|
|
|
|
|
# xref https://github.com/coreos/fedora-coreos-tracker/issues/510
|
|
|
|
|
packages:
|
|
|
|
|
- bootupd
|
|
|
|
|
|
|
|
|
|
postprocess:
|
|
|
|
|
- |
|
|
|
|
|
#!/bin/bash
|
|
|
|
|
set -xeuo pipefail
|
2024-09-04 15:54:06 +02:00
|
|
|
|
2022-10-14 13:45:40 -04:00
|
|
|
# Transforms /usr/lib/ostree-boot into a bootupd-compatible update payload
|
2024-02-08 11:27:47 +01:00
|
|
|
/usr/bin/bootupctl backend generate-update-metadata
|
2024-09-04 15:54:06 +02:00
|
|
|
|
2024-12-18 12:46:39 +01:00
|
|
|
# Enable migration to a static GRUB config
|
|
|
|
|
install -dm0755 /usr/lib/systemd/system/bootloader-update.service.d
|
|
|
|
|
cat > /usr/lib/systemd/system/bootloader-update.service.d/migrate-static-grub-config.conf << 'EOF'
|
|
|
|
|
[Service]
|
|
|
|
|
ExecStart=/usr/bin/bootupctl migrate-static-grub-config
|
|
|
|
|
EOF
|
|
|
|
|
|
2024-09-04 15:57:16 +02:00
|
|
|
# Turn permissive mode on for bootupd until all SELinux issues are fixed
|
|
|
|
|
semanage permissive --noreload --add bootupd_t
|