From 826dff4480b43666d06d4bd9f89cd991492546b2 Mon Sep 17 00:00:00 2001 From: ManInDark <61268856+ManInDark@users.noreply.github.com> Date: Sat, 22 Nov 2025 18:18:28 +0100 Subject: [PATCH] FIX: don't reboot on automatic update --- build_files/bootc-fetch-apply-updates.service | 9 +++++++++ build_files/build.sh | 1 + 2 files changed, 10 insertions(+) create mode 100644 build_files/bootc-fetch-apply-updates.service diff --git a/build_files/bootc-fetch-apply-updates.service b/build_files/bootc-fetch-apply-updates.service new file mode 100644 index 0000000..b0a031b --- /dev/null +++ b/build_files/bootc-fetch-apply-updates.service @@ -0,0 +1,9 @@ +[Unit] +Description=Fetch bootc updates +Documentation=man:bootc(8) +ConditionPathExists=/run/ostree-booted + +[Service] +Type=oneshot +ExecStart=/usr/bin/bootc upgrade --quiet +TimeoutStopFailureMode=abort diff --git a/build_files/build.sh b/build_files/build.sh index a79ac55..38f311f 100755 --- a/build_files/build.sh +++ b/build_files/build.sh @@ -1,6 +1,7 @@ #!/bin/bash set -ouex pipefail +cp /ctx/bootc-fetch-apply-updates.service /usr/lib/systemd/system/bootc-fetch-apply-updates.service dnf5 update -y dnf5 install -y man-pages man-db glibc-langpack-en glibc-langpack-de plymouth