From 42761be5ef2f5534f46a75396ee90902ee68c2f1 Mon Sep 17 00:00:00 2001 From: Akihiro Suda Date: Tue, 1 Dec 2020 16:59:27 +0900 Subject: [PATCH] images/base: disable udev.service Discussed in https://github.com/kubernetes-sigs/kind/pull/1935#discussion_r533130699 Signed-off-by: Akihiro Suda --- images/base/Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/images/base/Dockerfile b/images/base/Dockerfile index 9ca4dfae32..c2a37ce96f 100644 --- a/images/base/Dockerfile +++ b/images/base/Dockerfile @@ -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/