Skip to content

Commit

Permalink
The /etc/systemd/system.conf in latest Fedoras no longer has the [Man…
Browse files Browse the repository at this point in the history
…ager] section,

using a drop-in file seems like the cleanest approach.

Addressing
/etc/systemd/system.conf:1: Assignment outside of section. Ignoring.
  • Loading branch information
adelton committed Feb 7, 2025
1 parent a6760bd commit df3c3bc
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 7 deletions.
2 changes: 2 additions & 0 deletions DefaultLimitNOFILE.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[Manager]
DefaultLimitNOFILE=1024
2 changes: 1 addition & 1 deletion Dockerfile.almalinux-9
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ RUN systemctl mask rpc-gssd.service
ENV container oci

# Establish reasonably low open files limit in the container
RUN echo "DefaultLimitNOFILE=1024" >> /etc/systemd/system.conf
COPY DefaultLimitNOFILE.conf /usr/lib/systemd/system.conf.d/DefaultLimitNOFILE.conf

ENTRYPOINT [ "/usr/sbin/init" ]
STOPSIGNAL RTMIN+3
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.centos-9-stream
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ RUN systemctl mask rpc-gssd.service
ENV container oci

# Establish reasonably low open files limit in the container
RUN echo "DefaultLimitNOFILE=1024" >> /etc/systemd/system.conf
COPY DefaultLimitNOFILE.conf /usr/lib/systemd/system.conf.d/DefaultLimitNOFILE.conf

ENTRYPOINT [ "/usr/sbin/init" ]
STOPSIGNAL RTMIN+3
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.fedora-40
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ RUN systemctl mask rpc-gssd.service
# debug: RUN test "$container" = oci

# Establish reasonably low open files limit in the container
RUN echo "DefaultLimitNOFILE=1024" >> /etc/systemd/system.conf
COPY DefaultLimitNOFILE.conf /usr/lib/systemd/system.conf.d/DefaultLimitNOFILE.conf

ENTRYPOINT [ "/usr/sbin/init" ]
STOPSIGNAL RTMIN+3
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.fedora-41
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ RUN ( echo '[Service]' ; echo 'ExecStartPre=' ; sed '/ExecStartPre/!d; s/-R/-R -
# debug: RUN test "$container" = oci

# Establish reasonably low open files limit in the container
RUN echo "DefaultLimitNOFILE=1024" >> /etc/systemd/system.conf
COPY DefaultLimitNOFILE.conf /usr/lib/systemd/system.conf.d/DefaultLimitNOFILE.conf

ENTRYPOINT [ "/usr/sbin/init" ]
STOPSIGNAL RTMIN+3
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.fedora-rawhide
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ RUN ( echo '[Service]' ; echo 'ExecStartPre=' ; sed '/ExecStartPre/!d; s/-R/-R -
# debug: RUN test "$container" = oci

# Establish reasonably low open files limit in the container
RUN echo "DefaultLimitNOFILE=1024" >> /etc/systemd/system.conf
COPY DefaultLimitNOFILE.conf /usr/lib/systemd/system.conf.d/DefaultLimitNOFILE.conf

ENTRYPOINT [ "/usr/sbin/init" ]
STOPSIGNAL RTMIN+3
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.rhel-9
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ RUN systemctl mask rpc-gssd.service
# debug: RUN test "$container" = oci

# Establish reasonably low open files limit in the container
RUN echo "DefaultLimitNOFILE=1024" >> /etc/systemd/system.conf
COPY DefaultLimitNOFILE.conf /usr/lib/systemd/system.conf.d/DefaultLimitNOFILE.conf

ENTRYPOINT [ "/usr/sbin/init" ]
STOPSIGNAL RTMIN+3
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.rocky-9
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ RUN systemctl mask rpc-gssd.service
ENV container oci

# Establish reasonably low open files limit in the container
RUN echo "DefaultLimitNOFILE=1024" >> /etc/systemd/system.conf
COPY DefaultLimitNOFILE.conf /usr/lib/systemd/system.conf.d/DefaultLimitNOFILE.conf

ENTRYPOINT [ "/usr/sbin/init" ]
STOPSIGNAL RTMIN+3
Expand Down

0 comments on commit df3c3bc

Please sign in to comment.