tuto2: Add machine hostname in /etc/hosts to avoid lookup failures

This commit is contained in:
nemunaire 2023-03-16 22:49:06 +01:00
parent 71fb309c33
commit 8a2405e508
1 changed files with 2 additions and 1 deletions

View File

@ -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