From 8a2405e508494820cc276a7ce8646c48ba827496 Mon Sep 17 00:00:00 2001 From: Pierre-Olivier Mercier Date: Thu, 16 Mar 2023 22:49:06 +0100 Subject: [PATCH] tuto2: Add machine hostname in /etc/hosts to avoid lookup failures --- pkg/debian-tuto2/Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/debian-tuto2/Dockerfile b/pkg/debian-tuto2/Dockerfile index cd87620..cc76aa7 100644 --- a/pkg/debian-tuto2/Dockerfile +++ b/pkg/debian-tuto2/Dockerfile @@ -26,7 +26,8 @@ RUN echo "deb http://deb.debian.org/debian bullseye-backports main" >> /etc/apt/ RUN rm -rf /etc/init.d/ && \ mkdir /overlay && \ ln -sf /init /sbin/init && \ - ln -sf /lib/systemd/system/systemd-netwkord.service /etc/systemd/system/multi-user.target.wants/systemd-networkd.service + ln -sf /lib/systemd/system/systemd-netwkord.service /etc/systemd/system/multi-user.target.wants/systemd-networkd.service && \ + sed '/127.0.0.1/s/$/adlin2/' /etc/hosts COPY default.script /etc/udhcpc/default.script COPY issue /etc/issue