Bugzilla – Bug 800817
NETWORKMANAGER=yes/no is gone in in favour of network.service alias link
Last modified: 2013-02-06 19:39:24 UTC
kiwi-config-openSUSE.spec is still using NETWORKMANAGER=yes/no, e.g. in the spec file: if test $desktop = x11; then echo 'baseUpdateSysConfig /etc/sysconfig/network/config NETWORKMANAGER no' >> config.sh else echo 'baseUpdateSysConfig /etc/sysconfig/network/config NETWORKMANAGER yes' >> config.sh fi The code behind needs to be adopted to something like: if test $desktop = x11; then systemctl -f enable NetworkManager.service || : else systemctl disable NetworkManager.service || : fi +++ This bug was initially created as a clone of Bug #800771 +++ Created an attachment (id=522207) network-service-switch.sh: illustration script The NETWORKMANAGER=yes/no variable /etc/sysconfig/network/config has been replaced with the use of network.service alias link, which is created while "systemctl enable". The enabled service masks the LSB /etc/init.d/network script as provided by sysconfig using the following addition in its systemd service file: [Install] +Alias=network.service The service name providing the network.sevice alias is visible in the "Id" systemctl property or it shows "network.service" as "Id" when the /etc/init.d/network is used.
IMO it should be: if test $desktop = x11; then echo "/bin/systemctl -f enable NetworkManager.service" >> config.sh else echo "/bin/systemctl disable NetworkManager.service" >> config.sh fi
Ahm maintainer of kiwi-config-openSUSE is Stephan, not Marcus... The above were at least another ways around when not wrong. The complete kiwi-config-openSUSE is about 12.2 until now. I've no idea where are the 12.3 live-cd configs. The change exists since 12.3. Stephan?
I see, that the 12.3 package seems to be in openSUSE:12.3:Live. I've applied the change to OBS/home:mtomaschewski:tests/kiwi-config-openSUSE. But perhaps it is better to use a systemd preset file here?
Current change: if test $desktop = x11; then - echo 'baseUpdateSysConfig /etc/sysconfig/network/config NETWORKMANAGER no' >> config.sh + echo '/bin/systemctl disable NetworkManager.service' >> config.sh else - echo 'baseUpdateSysConfig /etc/sysconfig/network/config NETWORKMANAGER yes' >> config.sh + echo '/bin/systemctl -f enable NetworkManager.service' >> config.sh fi Alternative change using a preset file: if test $desktop = x11; then - echo 'baseUpdateSysConfig /etc/sysconfig/network/config NETWORKMANAGER no' >> config.sh + echo 'echo "disable NetworkManager.service" > /usr/lib/systemd/system.preset/network.preset' >> config.sh else - echo 'baseUpdateSysConfig /etc/sysconfig/network/config NETWORKMANAGER yes' >> config.sh + echo 'echo "enable NetworkManager.service" > /usr/lib/systemd/system.preset/network.preset' >> config.sh fi
This is an autogenerated message for OBS integration: This bug (800817) was mentioned in https://build.opensuse.org/request/show/150605 12.3 / kiwi-config-openSUSE
I don't think using a preset is the right way to do it (presets are only applied once). Better to use the other solution.
This is an autogenerated message for OBS integration: This bug (800817) was mentioned in https://build.opensuse.org/request/show/150672 Factory / kiwi-config-openSUSE https://build.opensuse.org/request/show/150673 Factory / kiwi-config-openSUSE
it's in