Skip to content

Commit

Permalink
images/base: disable udev.service
Browse files Browse the repository at this point in the history
Discussed in #1935 (comment)

Signed-off-by: Akihiro Suda <[email protected]>
  • Loading branch information
AkihiroSuda committed Jan 20, 2021
1 parent afa3db2 commit 42761be
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion images/base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,9 @@ RUN echo "Ensuring scripts are executable ..." \
&& echo "Ensuring /etc/kubernetes/manifests" \
&& mkdir -p /etc/kubernetes/manifests \
&& echo "Adjusting systemd-tmpfiles timer" \
&& sed -i /usr/lib/systemd/system/systemd-tmpfiles-clean.timer -e 's#OnBootSec=.*#OnBootSec=1min#'
&& sed -i /usr/lib/systemd/system/systemd-tmpfiles-clean.timer -e 's#OnBootSec=.*#OnBootSec=1min#' \
&& echo "Disabling udev" \
&& systemctl disable udev.service

# tell systemd that it is in docker (it will check for the container env)
# https://systemd.io/CONTAINER_INTERFACE/
Expand Down

0 comments on commit 42761be

Please sign in to comment.