Merge pull request #73 from a-schaefers/kiss-chroot

Only copy resolv.conf from host if it doesn't exist
This commit is contained in:
dylan 2019-12-10 11:36:53 +02:00 committed by GitHub
commit cd163bfd51
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,7 +20,6 @@ clean() {
log Cleaning leftover host files; {
rm -f "$1/root/.ash_history"
rm -f "$1/etc/resolv.conf"
}
}
@ -39,7 +38,7 @@ main() {
}
log Copying /etc/resolv.conf from host; {
cp /etc/resolv.conf "$1/etc"
[ -f "/$1/etc/resolv.conf" ] || cp /etc/resolv.conf "$1/etc"
}
log Entering chroot; {