aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew McDermott <andrew.mcdermott@linaro.org>2015-01-16 09:21:50 +0000
committerAndrew McDermott <andrew.mcdermott@linaro.org>2015-01-16 09:21:50 +0000
commit27fd2f4f8c40e57975c9c477e9011bbde607fc9b (patch)
tree2659830dd7383fca709d9f2f88c0fd3902949d52
parent8e4b8ee06ef9999bb379c2cb81d36daae9b7ed15 (diff)
Echo what /etc/resolv.conf will be on the new image
-rwxr-xr-xchroot-img1
1 files changed, 1 insertions, 0 deletions
diff --git a/chroot-img b/chroot-img
index 8e57e36..c0dea2c 100755
--- a/chroot-img
+++ b/chroot-img
@@ -12,6 +12,7 @@ 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
+cat /mnt/etc/resolv.conf
cp /etc/apt/sources.list /mnt
chroot /mnt /bin/bash $program
[[ -f $helper ]] && . $helper "out"