Skip to content

Commit a98cdad

Browse files
committed
bootupd.spec: add posttans section
Run `bootupctl backend copy-to-boot` in posttans for F44+
1 parent 40193e2 commit a98cdad

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

contrib/packaging/bootupd.spec

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,16 @@ License: Apache-2.0 AND (Apache-2.0 WITH LLVM-exception) AND BSD-3-Clause
4545

4646
%description -n %{crate} %{_description}
4747

48+
%if 0%{?fedora} && 0%{?fedora} >= 44
49+
%posttrans -n %{crate}
50+
set -eu
51+
52+
# On image mode, bootupd takes care of installing bootloader updates to the ESP
53+
if [ ! -e /run/ostree-booted ]; then
54+
bootupctl backend copy-to-boot || :
55+
fi
56+
%endif
57+
4858
%files -n %{crate}
4959
%license LICENSE
5060
%license LICENSE.dependencies

0 commit comments

Comments
 (0)