diff options
author | Sven Gothel <[email protected]> | 2021-07-22 13:31:54 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2021-07-22 13:31:54 +0200 |
commit | 68a01813ccbf9f61baaa533488f17e6838a03efe (patch) | |
tree | c0a9d04e71fe0a2b26907946f97fadb66fceec7c /export-image | |
parent | ead70c56506b0f1bb178d780f311735cb2b3a353 (diff) |
export-image 02-network: Clean resolv.conf and do not add GOOG 8.8.8.8 NS (security risk)
Diffstat (limited to 'export-image')
-rwxr-xr-x | export-image/02-network/01-run.sh | 5 | ||||
-rw-r--r-- | export-image/02-network/files/resolv.conf | 1 |
2 files changed, 4 insertions, 2 deletions
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 |