Hello community,

here is the log from the commit of package NetworkManager for openSUSE:Factory 
checked in at 2013-03-01 07:36:12
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/NetworkManager (Old)
 and      /work/SRC/openSUSE:Factory/.NetworkManager.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "NetworkManager", Maintainer is "[email protected]"

Changes:
--------
--- /work/SRC/openSUSE:Factory/NetworkManager/NetworkManager.changes    
2013-01-30 09:34:46.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.NetworkManager.new/NetworkManager.changes       
2013-03-01 07:36:13.000000000 +0100
@@ -1,0 +2,6 @@
+Thu Feb 21 18:58:07 UTC 2013 - [email protected]
+
+- Added migration hook enabling NetworkManager.service on update
+  from openSUSE < 12.3 and NETWORKMANAGER=yes setting (bnc#803058).
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ NetworkManager.spec ++++++
--- /var/tmp/diff_new_pack.oLg9i8/_old  2013-03-01 07:36:15.000000000 +0100
+++ /var/tmp/diff_new_pack.oLg9i8/_new  2013-03-01 07:36:15.000000000 +0100
@@ -82,7 +82,7 @@
 Requires:       iputils
 Requires:       mozilla-nss
 Requires:       ppp
-Requires:       sysconfig >= 0.80.0
+Requires:       sysconfig >= 0.80.5
 Requires:       wpa_supplicant >= 0.6.4
 %{?systemd_requires}
 Provides:       dhcdbd = 1.14
@@ -249,6 +249,31 @@
 
 %post
 %service_add_post NetworkManager.service
+# bnc#803058:
+# sysconfig creates this file while update from openSUSE < 12.3,
+# which were using the NETWORKMANAGER=yes/no sysconfig variable.
+# When it exists and NETWORKMANAGER were enabled, force enable to
+# ensure, the network.service alias link exists points to us.
+if [ -f /dev/.sysconfig/network/migrate_nm_variable ] ; then
+       . /dev/.sysconfig/network/migrate_nm_variable
+       if [ "X$NETWORKMANAGER" = "Xyes" ] ; then
+               # In running system "--force enable" is sufficient to
+               # create the network.service alias link regardless if
+               # the network.service is masked or not.
+               # While 12.2 -> 12.3 dist update, enable seems to be
+               # unable to create the alias... no idea why. Kick it
+               rm -f /etc/systemd/system/network.service
+               /usr/bin/systemctl --system daemon-reload || :
+               /usr/bin/systemctl --force enable NetworkManager.service || :
+               # and create the alias when enable failed to make it.
+               if [ ! -e /etc/systemd/system/network.service ] ; then
+                       ln -sf  %{_unitdir}/NetworkManager.service \
+                               /etc/systemd/system/network.service
+               fi
+               /usr/bin/systemctl --system daemon-reload || :
+       fi
+       rm -f /dev/.sysconfig/network/migrate_nm_variable
+fi
 
 %preun
 %service_del_preun NetworkManager.service


-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to