From b1b528ff680cde3a04cea3d8ddbd160dce97c0fc 2016-03-11 08:50:51 From: Filip Pytloun Date: 2016-03-11 08:50:51 Subject: [PATCH] Remove resolv.conf on cleanup --- diff --git a/rpi2-gen-image.sh b/rpi2-gen-image.sh index eeca382..a1ff548 100755 --- a/rpi2-gen-image.sh +++ b/rpi2-gen-image.sh @@ -240,6 +240,7 @@ rm -f $R/var/lib/urandom/random-seed [ -L $R/var/lib/dbus/machine-id ] || rm -f $R/var/lib/dbus/machine-id rm -f $R/etc/machine-id rm -fr $R/etc/apt/apt.conf.d/10proxy +rm -f $R/etc/resolv.conf # Calculate size of the chroot directory in KB CHROOT_SIZE=$(expr `du -s $R | awk '{ print $1 }'`)