diff --git a/overlay.d/15fcos/usr/lib/systemd/system-preset/45-fcos.preset b/overlay.d/15fcos/usr/lib/systemd/system-preset/45-fcos.preset index 50ccc9dd1b..2e23f7520e 100644 --- a/overlay.d/15fcos/usr/lib/systemd/system-preset/45-fcos.preset +++ b/overlay.d/15fcos/usr/lib/systemd/system-preset/45-fcos.preset @@ -9,4 +9,6 @@ enable coreos-check-wireless-firmwares.service # Strip extraneous field in aleph files to avoid bootupctl failing # https://github.com/coreos/fedora-coreos-tracker/issues/1724 enable coreos-fix-aleph-file.service - +# Upgrade bootloader on secureboot nodes to avoid +# https://github.com/coreos/fedora-coreos-tracker/issues/1752 +enable coreos-bootupctl-update-secureboot.service diff --git a/overlay.d/15fcos/usr/lib/systemd/system/coreos-bootupctl-update-secureboot.service b/overlay.d/15fcos/usr/lib/systemd/system/coreos-bootupctl-update-secureboot.service new file mode 100644 index 0000000000..38bdc682f6 --- /dev/null +++ b/overlay.d/15fcos/usr/lib/systemd/system/coreos-bootupctl-update-secureboot.service @@ -0,0 +1,18 @@ +# Remove after the next barrier release +# https://github.com/coreos/fedora-coreos-tracker/issues/1752 + +[Unit] +Description=Update Bootloader for secureboot-enabled systems +ConditionSecurity=uefi-secureboot +ConditionFirmware=uefi +# make sure to run after the aleph file is fixed +# see https://github.com/coreos/fedora-coreos-tracker/issues/1724 +After=coreos-fix-aleph-file.service + +[Service] +Type=oneshot +ExecStart=/usr/bin/bootupctl update +RemainAfterExit=yes + +[Install] +WantedBy=multi-user.target