| |
@@ -12,22 +12,13 @@
|
| |
# Transforms /usr/lib/ostree-boot into a bootupd-compatible update payload
|
| |
/usr/bin/bootupctl backend generate-update-metadata
|
| |
|
| |
- # Trigger a bootloader update on boot
|
| |
- cat > /usr/lib/systemd/system/bootloader-update.service << 'EOF'
|
| |
- [Unit]
|
| |
- Description=Update bootloader on boot
|
| |
- Documentation=https://github.com/coreos/bootupd
|
| |
-
|
| |
+ # 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]
|
| |
- Type=oneshot
|
| |
- ExecStart=/usr/bin/bootupctl update
|
| |
- RemainAfterExit=yes
|
| |
- MountFlags=slave
|
| |
-
|
| |
- [Install]
|
| |
- WantedBy=multi-user.target
|
| |
+ ExecStart=/usr/bin/bootupctl migrate-static-grub-config
|
| |
EOF
|
| |
- chmod 644 /usr/lib/systemd/system/bootloader-update.service
|
| |
+
|
| |
echo "enable bootloader-update.service" > /usr/lib/systemd/system-preset/81-atomic-desktop.preset
|
| |
|
| |
# Turn permissive mode on for bootupd until all SELinux issues are fixed
|
| |
Hold until https://bodhi.fedoraproject.org/updates/FEDORA-2025-2706747d93 is pushed to stable.