Browse Source

fix: copy resolv.conf for initial download & extract as well

Signed-off-by: Thorsten Liebig <Thorsten.Liebig@gmx.de>
pull/3/head
Thorsten Liebig 6 years ago
parent
commit
2c1d8ae6ca
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      getchroot

+ 2
- 2
getchroot View File

@@ -10,12 +10,12 @@ 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
fi
# copy resolv.conf from host into chroot
cp /etc/resolv.conf $2/etc/resolv.conf
}

function update_chroot {


Loading…
Cancel
Save