summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2012-09-30 09:42:13 +0200
committerDaniel Baumann <daniel@debian.org>2012-09-30 09:43:58 +0200
commit880e6e07364a405ed225416a1c020d8dc0918db2 (patch)
treefeddec5c2e6daa8cb241f4d5bd3ead84a23a077d /scripts
parent5e4f7742c5dd3381701c54fe7a7a6bb34fa60e9c (diff)
downloadvyos-live-build-880e6e07364a405ed225416a1c020d8dc0918db2.tar.gz
vyos-live-build-880e6e07364a405ed225416a1c020d8dc0918db2.zip
Adding slightly modified patch from Adam Conrad <adconrad@ubuntu.com> to remove resolvconf artifacts.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/build/chroot_resolv7
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/build/chroot_resolv b/scripts/build/chroot_resolv
index b82e3667a..42ba07161 100755
--- a/scripts/build/chroot_resolv
+++ b/scripts/build/chroot_resolv
@@ -90,6 +90,13 @@ case "${1}" in
Truncate chroot/etc/resolv.conf
fi
+ # Clean up resolvconf's pollution
+ if [ -e chroot/etc/resolvconf/resolv.conf.d ]
+ then
+ rm -f chroot/etc/resolvconf/resolv.conf.d/original
+ rm -f chroot/etc/resolvconf/resolv.conf.d/tail
+ fi
+
# Removing stage file
rm -f .build/chroot_resolv
;;