https://bugzilla.novell.com/show_bug.cgi?id=803058 https://bugzilla.novell.com/show_bug.cgi?id=803058#c14 --- Comment #14 from Marius Tomaschewski <mt@suse.com> 2013-02-19 18:42:40 UTC --- OK, there are new sysconfig & NetworkManager packages at: http://download.opensuse.org/repositories/home:/mtomaschewski:/tests/openSUS... I'm currently testing it.... IMO the disable has to be called early, so I keep it in sysconfig %post. But the "enable" has to be done in the NetworkManager %post _after_ the installation of the NetworkManager.service file which provides the alias link: sysconfig %pre: # trigger update from < 0.80.x only (-> openSUSE 12.3), # (guard for variable added to network/config later...) if grep -qs "^NETWORKMANAGER=" \ var/adm/fillup-templates/sysconfig.config-network ; then grep -s "^NETWORKMANAGER=" etc/sysconfig/network/config \ > /dev/.sysconfig/network/migrate_nm_variable fi sysconfig %post: if [ -f /dev/.sysconfig/network/migrate_nm_variable ] ; then . /dev/.sysconfig/network/migrate_nm_variable if [ -x /bin/systemctl -a -x /usr/sbin/NetworkManager ] ; then case $NETWORKMANAGER in # bnc#803058: # explicitly disable, so /etc/init.d/network is not masked. # The enablement is done in the NetworkManager post script # to create the network.service alias link as needed. no) /bin/systemctl --force disable NetworkManager.service || : ;; esac fi # keep the /dev/.sysconfig/network/migrate_nm_variable file, # so the NetworkManager post-install is able to enable later. fi NetworkManager %post: # sysconfig creates this file while update from openSUSE <= 12.2, # which were using the NETWORKMANAGER=yes/no sysconfig variable. # When it exists, enable/disable our service accordingly, so the # network.service alias link refers to the same service as before. if [ -f /dev/.sysconfig/network/migrate_nm_variable ] ; then . /dev/.sysconfig/network/migrate_nm_variable rm -f /dev/.sysconfig/network/migrate_nm_variable if [ -x /bin/systemctl ] ; then case $NETWORKMANAGER in no) /bin/systemctl --force disable NetworkManager.service || : ;; yes) /bin/systemctl --force enable NetworkManager.service || : ;; esac fi fi -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.