File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -8,5 +8,25 @@ postprocess:
8
8
- |
9
9
#!/bin/bash
10
10
set -xeuo pipefail
11
+
11
12
# Transforms /usr/lib/ostree-boot into a bootupd-compatible update payload
12
13
/usr/bin/bootupctl backend generate-update-metadata
14
+
15
+ # Trigger a bootloader update on boot
16
+ cat > /usr/lib/systemd/system/bootloader-update.service << 'EOF'
17
+ [Unit]
18
+ Description=Update bootloader on boot
19
+ Documentation=https://github.com/coreos/bootupd
20
+ ConditionFirmware=uefi
21
+
22
+ [Service]
23
+ Type=oneshot
24
+ ExecStart=/usr/bin/bootupctl update
25
+ RemainAfterExit=yes
26
+ MountFlags=slave
27
+
28
+ [Install]
29
+ WantedBy=multi-user.target
30
+ EOF
31
+ chmod 644 /usr/lib/systemd/system/bootloader-update.service
32
+ echo "enable bootloader-update.service" > /usr/lib/systemd/system-preset/81-atomic-desktop.preset
You can’t perform that action at this time.
0 commit comments