From 300323ea4e2c1387e8d7e297cc354a2b7c19f44b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gerard=20Braad=20=28=E5=90=89=E6=8B=89=E5=BE=B7=29?= Date: Wed, 20 Jul 2022 06:39:03 +0000 Subject: [PATCH] Add placeholder for resolv.conf This prevents that the wrong permissions are set on the resolv.conf file when the container image is used as a base for non-root use. --- fedora-container-common.ks | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fedora-container-common.ks b/fedora-container-common.ks index b5a4bf6..3637c89 100644 --- a/fedora-container-common.ks +++ b/fedora-container-common.ks @@ -83,4 +83,6 @@ echo "# fstab intentionally empty for containers" > /etc/fstab rm -f /etc/machine-id touch /etc/machine-id +echo "# resolv placeholder" > /etc/resolv.conf +chmod 644 /etc/resolv.conf %end