From 68a01813ccbf9f61baaa533488f17e6838a03efe Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Thu, 22 Jul 2021 13:31:54 +0200 Subject: export-image 02-network: Clean resolv.conf and do not add GOOG 8.8.8.8 NS (security risk) --- export-image/02-network/01-run.sh | 5 ++++- export-image/02-network/files/resolv.conf | 1 - 2 files changed, 4 insertions(+), 2 deletions(-) delete mode 100644 export-image/02-network/files/resolv.conf (limited to 'export-image') diff --git a/export-image/02-network/01-run.sh b/export-image/02-network/01-run.sh index 4150732..5deac86 100755 --- a/export-image/02-network/01-run.sh +++ b/export-image/02-network/01-run.sh @@ -1,3 +1,6 @@ #!/bin/bash -e -install -m 644 files/resolv.conf "${ROOTFS_DIR}/etc/" +# cleanup resolv.conf +rm -f "${ROOTFS_DIR}/etc/resolv.conf" +touch "${ROOTFS_DIR}/etc/resolv.conf" +chmod 644 "${ROOTFS_DIR}/etc/resolv.conf" diff --git a/export-image/02-network/files/resolv.conf b/export-image/02-network/files/resolv.conf deleted file mode 100644 index cae093a..0000000 --- a/export-image/02-network/files/resolv.conf +++ /dev/null @@ -1 +0,0 @@ -nameserver 8.8.8.8 -- cgit v1.2.3