From 5edebd5eba57cd46408f34e3239bde8a2145ed71 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Thu, 29 Sep 2016 17:09:59 +0200 Subject: pxe-common: add dns domain name in resolv.conf Signed-off-by: Christian Hesse --- hooks/archiso_pxe_common | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hooks/archiso_pxe_common b/hooks/archiso_pxe_common index 7de2a39..652ef8f 100644 --- a/hooks/archiso_pxe_common +++ b/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 } -- cgit v1.2.3-70-g09d2