aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew McDermott <andrew.mcdermott@linaro.org>2015-01-16 08:30:28 +0000
committerAndrew McDermott <andrew.mcdermott@linaro.org>2015-01-16 08:30:28 +0000
commit67a7b0a077a70bf214df26b34225092897688d9f (patch)
treee9ecc096efbe9035fcd44b9ef360dccb85c1f625
parentbb9d42a6a3a2e7d86cfec5da3d11425d661c25f5 (diff)
Leave /etc/resolv.conf in place
-rwxr-xr-xchroot-img1
1 files changed, 1 insertions, 0 deletions
diff --git a/chroot-img b/chroot-img
index 806ff17..8e57e36 100755
--- a/chroot-img
+++ b/chroot-img
@@ -10,6 +10,7 @@ mount -t proc none /mnt/proc
mount -o bind /dev /mnt/dev
mount -o bind /dev/pts /mnt/dev/pts
[[ -f $helper ]] && . $helper "in"
+rm -f /mnt/etc/resolv.conf
cp -L /etc/resolv.conf /mnt/etc/resolv.conf
cp /etc/apt/sources.list /mnt
chroot /mnt /bin/bash $program