chore(rpm-ostree): Use /usr/lib/ directory instead of /etc/ for optfix service

This commit is contained in:
fiftydinar 2025-05-21 17:56:15 +02:00 committed by GitHub
parent ec6a52d583
commit 719fd97cad
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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"