diff -Nru resolvconf-1.69ubuntu1/debian/changelog resolvconf-1.69ubuntu1.1/debian/changelog --- resolvconf-1.69ubuntu1/debian/changelog 2013-01-18 18:52:11.000000000 +0200 +++ resolvconf-1.69ubuntu1.1/debian/changelog 2014-06-13 16:06:13.000000000 +0300 @@ -1,3 +1,12 @@ +resolvconf (1.69ubuntu1.1) trusty-proposed; urgency=medium + + * debian/preinst: On 12.04 LTS the system works without /etc/resolv.conf. + Upon upgrading such a system to 14.04 LTS network stops working. + Therefore, create a symlink upon upgrade from resolvconf <= 1.64 in the + case that /etc/resolv.conf does not exist at all. (LP: #1308378) + + -- Timo Jyrinki Thu, 17 Apr 2014 14:45:17 +0300 + resolvconf (1.69ubuntu1) raring; urgency=low * Merge from Debian. Remaining changes: (LP: #1085756) diff -Nru resolvconf-1.69ubuntu1/debian/preinst resolvconf-1.69ubuntu1.1/debian/preinst --- resolvconf-1.69ubuntu1/debian/preinst 2012-12-13 20:27:08.000000000 +0200 +++ resolvconf-1.69ubuntu1.1/debian/preinst 2014-06-13 16:05:59.000000000 +0300 @@ -56,9 +56,17 @@ fi fi ;; - # upgrade) - # Don't do anything - # ;; + upgrade) + # On 12.04 LTS the system works without /etc/resolv.conf. Upon upgrading + # such a system to 14.04 LTS network stops working. Therefore, create a + # symlink upon upgrade from resolvconf <= 1.64 in the case that + # /etc/resolv.conf does not exist at all. (LP: #1308378) + if dpkg --compare-versions "$2" lt 1.64 ; then + if [ ! -e /etc/resolv.conf ]; then + ln -nsf ../run/resolvconf/resolv.conf /etc/resolv.conf + fi + fi + ;; # abort-upgrade) # Don't do anything because we don't anything in the postrm on upgrade or on failed-upgrade # ;;