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.
This commit is contained in:
Gerard Braad (吉拉德) 2022-07-20 06:39:03 +00:00
parent 343df58f59
commit 300323ea4e

View File

@ -83,4 +83,6 @@ echo "# fstab intentionally empty for containers" > /etc/fstab
rm -f /etc/machine-id rm -f /etc/machine-id
touch /etc/machine-id touch /etc/machine-id
echo "# resolv placeholder" > /etc/resolv.conf
chmod 644 /etc/resolv.conf
%end %end