Merge lp:~timo-jyrinki/ubuntu/trusty/resolvconf/fix_lp_1308378 into lp:ubuntu/trusty/resolvconf

Proposed by Timo Jyrinki
Status: Merged
Merge reported by: Sebastien Bacher
Merged at revision: not available
Proposed branch: lp:~timo-jyrinki/ubuntu/trusty/resolvconf/fix_lp_1308378
Merge into: lp:ubuntu/trusty/resolvconf
Diff against target: 41 lines (+20/-3)
2 files modified
debian/changelog (+9/-0)
debian/preinst (+11/-3)
To merge this branch: bzr merge lp:~timo-jyrinki/ubuntu/trusty/resolvconf/fix_lp_1308378
Reviewer Review Type Date Requested Status
Ubuntu branches Pending
Review via email: mp+216300@code.launchpad.net

Commit message

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)

Description of the change

The proposed branch adds upgrade) preinst rule for resolvconf < 1.64, and creates the symlink if and only if /etc/resolv.conf does not exist at all (normal file or symlink). I've tested that it does nothing when upgrading from newer resolvconf, and also leaves /etc/resolv.conf untouched if it exists as a normal file or a symlink, when upgrading from the precise version. It fixes the issue I saw on upgrade.

To post a comment you must log in.
Revision history for this message
Sebastien Bacher (seb128) wrote :

setting as merged, it looks like that got uploaded (but you should check the bug report, there is a new comment that indicates the update is creating issues for some users)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'debian/changelog'
--- debian/changelog 2013-01-18 16:52:12 +0000
+++ debian/changelog 2014-04-17 12:18:33 +0000
@@ -1,3 +1,12 @@
1resolvconf (1.69ubuntu1.1) trusty; urgency=medium
2
3 * debian/preinst: On 12.04 LTS the system works without /etc/resolv.conf.
4 Upon upgrading such a system to 14.04 LTS network stops working.
5 Therefore, create a symlink upon upgrade from resolvconf <= 1.64 in the
6 case that /etc/resolv.conf does not exist at all. (LP: #1308378)
7
8 -- Timo Jyrinki <timo-jyrinki@ubuntu.com> Thu, 17 Apr 2014 14:45:17 +0300
9
1resolvconf (1.69ubuntu1) raring; urgency=low10resolvconf (1.69ubuntu1) raring; urgency=low
211
3 * Merge from Debian. Remaining changes: (LP: #1085756)12 * Merge from Debian. Remaining changes: (LP: #1085756)
413
=== modified file 'debian/preinst'
--- debian/preinst 2012-05-03 22:52:01 +0000
+++ debian/preinst 2014-04-17 12:18:33 +0000
@@ -56,9 +56,17 @@
56 fi56 fi
57 fi57 fi
58 ;;58 ;;
59 # upgrade)59 upgrade)
60 # Don't do anything60 # On 12.04 LTS the system works without /etc/resolv.conf. Upon upgrading
61 # ;;61 # such a system to 14.04 LTS network stops working. Therefore, create a
62 # symlink upon upgrade from resolvconf <= 1.64 in the case that
63 # /etc/resolv.conf does not exist at all. (LP: #1308378)
64 if dpkg --compare-versions "$2" lt 1.64 ; then
65 if [ ! -e /etc/resolv.conf ]; then
66 ln -nsf ../run/resolvconf/resolv.conf /etc/resolv.conf
67 fi
68 fi
69 ;;
62 # abort-upgrade)70 # abort-upgrade)
63 # Don't do anything because we don't anything in the postrm on upgrade or on failed-upgrade71 # Don't do anything because we don't anything in the postrm on upgrade or on failed-upgrade
64 # ;;72 # ;;

Subscribers

People subscribed via source and target branches

to all changes: