Skip to content

Commit

Permalink
bootupd: Enable static GRUB config migration
Browse files Browse the repository at this point in the history
  • Loading branch information
travier committed Feb 5, 2025
1 parent ebe8022 commit dc1f032
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions bootupd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@ postprocess:
# Transforms /usr/lib/ostree-boot into a bootupd-compatible update payload
/usr/bin/bootupctl backend generate-update-metadata
# 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
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
Expand Down

0 comments on commit dc1f032

Please sign in to comment.