diff --git a/run.sh b/run.sh index 8147ab3..5cb9e6e 100755 --- a/run.sh +++ b/run.sh @@ -26,19 +26,6 @@ setup () { mount -o bind /run "$1/run" } -cphosts () { - if ! [ -e "$1/etc/hosts" ] - then - echo '-- Copying hosts' - cp /etc/hosts "$1/etc/hosts" - fi - if ! [ -e "$1/etc/resolv.conf" ] - then - echo '-- Copying resolv.conf' - cp /etc/resolv.conf "$1/etc/resolv.conf" - fi -} - runcmd () { echo -e '-- \e[1;32mOK\e[0m -- running chroot' chroot "$1" "$2" @@ -58,7 +45,6 @@ main () { trap "clean $chrdir" EXIT setup "$chrdir" - cphosts "$chrdir" runcmd "$chrdir" "$chrcmd" exit $? }