Skip to content

Commit

Permalink
Stop the sssd.service from changing the /etc/sssd symlink.
Browse files Browse the repository at this point in the history
Addressing
C /etc/sssd
  • Loading branch information
adelton committed Dec 27, 2024
1 parent 841fd17 commit aad400b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Dockerfile.fedora-rawhide
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ RUN dnf upgrade -y --setopt=install_weak_deps=False \
# var-lib-nfs-rpc_pipefs.mount would run (and fail) nondeterministically
RUN systemctl mask rpc-gssd.service

# Stop the sssd.service from changing the /etc/sssd symlink
COPY patches/sssd-avoid-chown-chmod.conf /usr/lib/systemd/system/sssd.service.d/avoid-chown-chmod.conf
RUN mkdir /usr/lib/systemd/system/sssd.service.d \
&& ( echo '[Service]' ; echo 'ExecStartPre=' ; sed '/ExecStartPre/!d; s/-R/-R -H/g' /usr/lib/systemd/system/sssd.service ) > /usr/lib/systemd/system/sssd.service.d/avoid-chown-chmod-on-image.conf

# Container image which runs systemd
# debug: RUN test -f /etc/machine-id && ! test -s /etc/machine-id
# debug: RUN test "$container" = oci
Expand Down

0 comments on commit aad400b

Please sign in to comment.