diff options
author | Christian Hesse <mail@eworm.de> | 2016-09-29 17:09:59 +0200 |
---|---|---|
committer | Gerardo Exequiel Pozzi <vmlinuz386@gmail.com> | 2016-09-29 19:34:51 -0300 |
commit | 7b5d8767427d97643dc77ead4be1d535f904fcc0 (patch) | |
tree | 9ac82e0c0a5539127b0c5e5228aedaba56f428de /archiso/initcpio/hooks/archiso_pxe_common | |
parent | 38b81f0384a1f5ee306559e4f8a1c234fd0421cc (diff) | |
download | archiso32-7b5d8767427d97643dc77ead4be1d535f904fcc0.tar.xz |
pxe-common: add dns domain name in resolv.conf
Signed-off-by: Christian Hesse <mail@eworm.de>
Diffstat (limited to 'archiso/initcpio/hooks/archiso_pxe_common')
-rw-r--r-- | archiso/initcpio/hooks/archiso_pxe_common | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/archiso/initcpio/hooks/archiso_pxe_common b/archiso/initcpio/hooks/archiso_pxe_common index 7de2a39..652ef8f 100644 --- a/archiso/initcpio/hooks/archiso_pxe_common +++ b/archiso/initcpio/hooks/archiso_pxe_common @@ -45,6 +45,9 @@ run_hook () { if [[ "${IPV4DNS1}" != "0.0.0.0" ]]; then echo "nameserver ${IPV4DNS1}" >> /etc/resolv.conf fi + if [[ -n "${DNSDOMAIN}" ]]; then + echo "search ${DNSDOMAIN}" >> /etc/resolv.conf + fi fi } |