Skip to content

Commit ad271c6

Browse files
authored
_fix_ Use correct /usr/lib/systemd/systemd on debian-13 (#143)
# Description Fix docker cmd to use correct systemd binary. Remove systemd `dpkg-db-backup` service/timer and disable `systemd-journal-flush.service` ## Issues Resolved * Use correct container CMD: /usr/lib/systemd/systemd * Remove unneeded dpkg-db-backup service/timer * Disable unneeded systemd-journal-flush.service ## Type of Change _fix_ ## Check List - [x] New functionality includes tests - [x] All tests pass - [x] Commit message includes a [Conventional Commit Message](https://www.conventionalcommits.org/en/v1.0.0)
1 parent d473335 commit ad271c6

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

debian-13/Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,14 @@ RUN apt-get update && \
5454
-path '*.wants/*' \
5555
\( -name '*getty*' \
5656
-or -name '*apt-daily*' \
57+
-or -name '*dpkg-db-backup*' \
5758
-or -name '*systemd-timesyncd*' \
5859
-or -name '*systemd-logind*' \
5960
-or -name '*systemd-vconsole-setup*' \
6061
-or -name '*systemd-readahead*' \
6162
-or -name '*udev*' \) \
6263
-exec rm -v {} \; && \
6364
systemctl set-default multi-user.target && \
64-
systemctl mask dev-hugepages.mount sys-fs-fuse-connections.mount network.service
65+
systemctl mask dev-hugepages.mount sys-fs-fuse-connections.mount network.service systemd-journal-flush.service
6566

66-
CMD [ "/bin/systemd" ]
67+
CMD [ "/usr/lib/systemd/systemd" ]

0 commit comments

Comments
 (0)