summaryrefslogtreecommitdiff
path: root/archiso/hooks/archiso_pxe_common
diff options
context:
space:
mode:
authorGerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>2012-05-19 16:16:17 -0300
committerGerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>2012-05-29 23:48:15 -0300
commit0b39407e68ee8cceb0668397e54d0d55d3c1ac00 (patch)
tree32e1cee55515e70a215e794e742baa9f08bbc4b8 /archiso/hooks/archiso_pxe_common
parent36e8d6322f02571f86b3beba71a83479bc0467c1 (diff)
downloadarchiso32-0b39407e68ee8cceb0668397e54d0d55d3c1ac00.tar.xz
[archiso] archiso_pxe_common: add copy_resolvconf= boot option
Diffstat (limited to 'archiso/hooks/archiso_pxe_common')
-rw-r--r--archiso/hooks/archiso_pxe_common8
1 files changed, 8 insertions, 0 deletions
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
+}