summaryrefslogtreecommitdiff
path: root/archiso/initcpio/hooks/archiso_pxe_common
diff options
context:
space:
mode:
Diffstat (limited to 'archiso/initcpio/hooks/archiso_pxe_common')
-rw-r--r--archiso/initcpio/hooks/archiso_pxe_common3
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
}