summaryrefslogtreecommitdiff
path: root/archiso/initcpio
diff options
context:
space:
mode:
authorChristian Hesse <mail@eworm.de>2016-09-29 17:24:35 +0200
committerGerardo Exequiel Pozzi <vmlinuz386@gmail.com>2016-09-29 19:34:51 -0300
commit38b81f0384a1f5ee306559e4f8a1c234fd0421cc (patch)
tree7f1578506c12ed6c82aaf9e4555ac0dc2c414bbd /archiso/initcpio
parent43a8571a6c5e5128f4bf1220549af63077c75dfd (diff)
downloadarchiso32-38b81f0384a1f5ee306559e4f8a1c234fd0421cc.tar.xz
pxe-common: add a comment what added settings to resolv.conf
Signed-off-by: Christian Hesse <mail@eworm.de>
Diffstat (limited to 'archiso/initcpio')
-rw-r--r--archiso/initcpio/hooks/archiso_pxe_common3
1 files changed, 2 insertions, 1 deletions
diff --git a/archiso/initcpio/hooks/archiso_pxe_common b/archiso/initcpio/hooks/archiso_pxe_common
index d004cbe..7de2a39 100644
--- a/archiso/initcpio/hooks/archiso_pxe_common
+++ b/archiso/initcpio/hooks/archiso_pxe_common
@@ -39,7 +39,8 @@ run_hook () {
# setup DNS resolver
if [[ "${IPV4DNS0}" != "0.0.0.0" ]]; then
- echo "nameserver ${IPV4DNS0}" > /etc/resolv.conf
+ echo "# added by archiso_pxe_common hook" > /etc/resolv.conf
+ echo "nameserver ${IPV4DNS0}" >> /etc/resolv.conf
fi
if [[ "${IPV4DNS1}" != "0.0.0.0" ]]; then
echo "nameserver ${IPV4DNS1}" >> /etc/resolv.conf