From a3333c4d3724c6678c1d89f531673d833f5d2b97 Mon Sep 17 00:00:00 2001 From: Charles Short Date: Thu, 2 Jun 2022 09:56:35 -0400 Subject: [PATCH] debian: Clear out /etc/resolv.conf at the end LAT uses the host's /etc/resolv.conf for DNS lookups when installing the rootfs. It does not clear out the host information when it is finished, so clear it out when we are done. Test Plan PASS Build ISO PASS Boot ISO PASS Check for empty /etc/resolv.conf Story: 2009965 Task: 45527 Signed-off-by: Charles Short Change-Id: I0e52191eb99d866fb22a7687bfebf291f17d66db --- debian-mirror-tools/config/debian/common/base-bullseye.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/debian-mirror-tools/config/debian/common/base-bullseye.yaml b/debian-mirror-tools/config/debian/common/base-bullseye.yaml index 3d1980b15..71e6f55d3 100644 --- a/debian-mirror-tools/config/debian/common/base-bullseye.yaml +++ b/debian-mirror-tools/config/debian/common/base-bullseye.yaml @@ -88,6 +88,8 @@ rootfs-post-scripts: # relocate scratch to a more ostree friendly locale mkdir $IMAGE_ROOTFS/var/rootdirs/scratch ln -snf --relative $IMAGE_ROOTFS/var/rootdirs/scratch $IMAGE_ROOTFS/scratch +- |- + cat /dev/null > $IMAGE_ROOTFS/etc/resolv.conf environments: - NO_RECOMMENDATIONS="1" - DEBIAN_FRONTEND=noninteractive