diff --git a/arch/Containerfile b/arch/Containerfile index cd9cd94..c689b2c 100644 --- a/arch/Containerfile +++ b/arch/Containerfile @@ -45,7 +45,7 @@ RUN printf '[Match]\nType=ether\n\n[Network]\nDHCP=yes\n' \ # Point resolv.conf at systemd-resolved's stub via tmpfiles.d so it's # created correctly at first boot (can't symlink during build; resolv.conf # is bind-mounted by the container runtime and is EBUSY). -RUN printf 'L! /etc/resolv.conf - - - - /run/systemd/resolve/stub-resolv.conf\n' \ +RUN printf 'L /etc/resolv.conf - - - - /run/systemd/resolve/stub-resolv.conf\n' \ > /usr/lib/tmpfiles.d/resolv-conf.conf RUN --mount=type=tmpfs,dst=/tmp --mount=type=tmpfs,dst=/root \ diff --git a/debian/Containerfile b/debian/Containerfile index 711e4cd..56cd47f 100644 --- a/debian/Containerfile +++ b/debian/Containerfile @@ -26,7 +26,7 @@ RUN --mount=type=tmpfs,dst=/tmp --mount=type=tmpfs,dst=/root --mount=type=tmpfs, apt clean -y RUN systemctl enable systemd-networkd systemd-resolved ssh && \ - printf 'L! /etc/resolv.conf - - - - /run/systemd/resolve/stub-resolv.conf\n' \ + printf 'L /etc/resolv.conf - - - - /run/systemd/resolve/stub-resolv.conf\n' \ > /usr/lib/tmpfiles.d/resolv-conf.conf && \ mkdir -p /etc/netplan && \ printf 'network:\n version: 2\n ethernets:\n all-en:\n match:\n name: en*\n dhcp4: true\n dhcp4-overrides:\n use-domains: true\n dhcp6: true\n dhcp6-overrides:\n use-domains: true\n all-eth:\n match:\n name: eth*\n dhcp4: true\n dhcp4-overrides:\n use-domains: true\n dhcp6: true\n dhcp6-overrides:\n use-domains: true\n' > /etc/netplan/90-default.yaml && \ diff --git a/opensuse/Containerfile b/opensuse/Containerfile index 6bf7d62..05f1ce2 100644 --- a/opensuse/Containerfile +++ b/opensuse/Containerfile @@ -41,7 +41,7 @@ RUN printf '[Match]\nType=ether\n\n[Network]\nDHCP=yes\n' \ > /usr/lib/systemd/network/20-wired.network # Point resolv.conf at systemd-resolved's stub at first boot. -RUN printf 'L! /etc/resolv.conf - - - - /run/systemd/resolve/stub-resolv.conf\n' \ +RUN printf 'L /etc/resolv.conf - - - - /run/systemd/resolve/stub-resolv.conf\n' \ > /usr/lib/tmpfiles.d/resolv-conf.conf diff --git a/ubuntu/Containerfile b/ubuntu/Containerfile index 8475e99..4664f1b 100644 --- a/ubuntu/Containerfile +++ b/ubuntu/Containerfile @@ -26,7 +26,7 @@ RUN --mount=type=tmpfs,dst=/tmp --mount=type=tmpfs,dst=/root --mount=type=tmpfs, apt clean -y RUN systemctl enable systemd-networkd systemd-resolved ssh && \ - printf 'L! /etc/resolv.conf - - - - /run/systemd/resolve/stub-resolv.conf\n' \ + printf 'L /etc/resolv.conf - - - - /run/systemd/resolve/stub-resolv.conf\n' \ > /usr/lib/tmpfiles.d/resolv-conf.conf && \ mkdir -p /etc/netplan && \ printf 'network:\n version: 2\n ethernets:\n all-en:\n match:\n name: en*\n dhcp4: true\n all-eth:\n match:\n name: eth*\n dhcp4: true\n' > /etc/netplan/90-default.yaml