From 08ba15ed9d77a3b520b5ed58406b0e810e3ff53b Mon Sep 17 00:00:00 2001 From: aheirman <48590738+aheirman@users.noreply.github.com> Date: Mon, 29 Mar 2021 19:57:25 +0200 Subject: [PATCH] Move resolv.conf fase from prepare to fetch --- chroot_fetch | 4 ++++ chroot_prepare_iglunix | 4 ---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/chroot_fetch b/chroot_fetch index 858044c..3deed25 100755 --- a/chroot_fetch +++ b/chroot_fetch @@ -62,6 +62,10 @@ cat << EOF > ${root}/login_shell exec -a "-sh" /bin/sh EOF +sudo cp /etc/resolv.conf ${ROOT}/etc/resolv.conf +echo "Copied the host resolv.conf into the target" +echo "Feel free to override the generated network settings prior to chrooting into the system" + echo "---------------------" echo "finished chroot_fetch" echo "---------------------" diff --git a/chroot_prepare_iglunix b/chroot_prepare_iglunix index 8081899..2efa942 100755 --- a/chroot_prepare_iglunix +++ b/chroot_prepare_iglunix @@ -112,10 +112,6 @@ echo "Hostname: ${HOSTNAME}" mkdir ${ROOT}/etc echo "$HOSTNAME" > ${ROOT}/etc/hostname -sudo cp /etc/resolv.conf ${ROOT}/etc/resolv.conf -echo "Copied the host resolv.conf into the target" -echo "Feel free to override the generated network settings prior to chrooting into the system" - echo "Finished prepare_chroot_lazy"