From 6636365f4922e3d81965e4e7cb24a7354453d025 Mon Sep 17 00:00:00 2001 From: Gerardo Exequiel Pozzi Date: Sat, 19 May 2012 16:16:17 -0300 Subject: [archiso] archiso_pxe_common: add copy_resolvconf= boot option --- archiso/hooks/archiso_pxe_common | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/archiso/hooks/archiso_pxe_common b/archiso/hooks/archiso_pxe_common index febb503..d8ac709 100644 --- a/archiso/hooks/archiso_pxe_common +++ b/archiso/hooks/archiso_pxe_common @@ -40,3 +40,11 @@ run_hook () { fi fi } + +run_latehook () { + [[ -z "${copy_resolvconf}" ]] && copy_resolvconf="y" + + if [[ "${copy_resolvconf}" != "n" && -f /etc/resolv.conf ]]; then + cp /etc/resolv.conf /new_root/etc/resolv.conf + fi +} -- cgit v1.2.3-70-g09d2