From 719fd97cad813632e81d72aee991467005ef2f07 Mon Sep 17 00:00:00 2001 From: fiftydinar <65243233+fiftydinar@users.noreply.github.com> Date: Wed, 21 May 2025 17:56:15 +0200 Subject: [PATCH] chore(rpm-ostree): Use `/usr/lib/` directory instead of `/etc/` for optfix service --- modules/rpm-ostree/rpm-ostree.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/rpm-ostree/rpm-ostree.sh b/modules/rpm-ostree/rpm-ostree.sh index 80e5552..a37988c 100644 --- a/modules/rpm-ostree/rpm-ostree.sh +++ b/modules/rpm-ostree/rpm-ostree.sh @@ -43,7 +43,7 @@ fi get_json_array OPTFIX 'try .["optfix"][]' "$1" if [[ ${#OPTFIX[@]} -gt 0 ]]; then LIB_EXEC_DIR="/usr/libexec/bluebuild" - SYSTEMD_DIR="/etc/systemd/system" + SYSTEMD_DIR="/usr/lib/systemd/system" MODULE_DIR="/tmp/modules/rpm-ostree" if ! [ -x "${LIB_EXEC_DIR}/optfix.sh" ]; then @@ -54,7 +54,7 @@ if [[ ${#OPTFIX[@]} -gt 0 ]]; then if ! [ -f "${SYSTEMD_DIR}/bluebuild-optfix.service" ]; then cp "${MODULE_DIR}/bluebuild-optfix.service" "${SYSTEMD_DIR}/" - systemctl enable bluebuild-optfix.service + systemctl --system enable bluebuild-optfix.service fi echo "Creating symlinks to fix packages that install to /opt"