Browse Source

copy /etc/resolv.conf from host to chroot

pull/3/head
Markus Bergholz 6 years ago
parent
commit
51f84c1884
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      getchroot

+ 2
- 0
getchroot View File

@@ -10,6 +10,8 @@ function build_chroot {
mkdir -p $2
if [ -f $_CHROOT/$1.tar.xz ]; then
tar -C $2 -xf $_CHROOT/$1.tar.xz 2> /dev/null
# copy resolv.conf from host into chroot
cp /etc/resolv.conf $2/etc/resolv.conf
else
wget -P $_CHROOT/ $GET_URL/$1.tar.xz
tar -C $2 -xf $_CHROOT/$1.tar.xz 2> /dev/null


Loading…
Cancel
Save