summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README3
-rw-r--r--archiso/hooks/archiso_pxe_common8
2 files changed, 11 insertions, 0 deletions
diff --git a/README b/README
index 07bc019..cfcff39 100644
--- a/README
+++ b/README
@@ -90,6 +90,9 @@ INDEX
when option "IPAPPEND" is set to 2 or 3 in config.
BOOTIF=<hardware-address-of-boot-interface>
Default: (set via PXELINUX)
+* copy_resolvconf= Copy /etc/resolv.conf from initramfs to live-enviroment.
+ Set to "n" to skip them.
+ Default: "y"
** hooks/archiso_pxe_nbd
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
+}