Move resolv.conf fase from prepare to fetch

This commit is contained in:
aheirman 2021-03-29 19:57:25 +02:00
parent 93b46fa8e7
commit 08ba15ed9d
2 changed files with 4 additions and 4 deletions

View file

@ -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 "---------------------"

View file

@ -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"