http://bugzilla.opensuse.org/show_bug.cgi?id=1165366
http://bugzilla.opensuse.org/show_bug.cgi?id=1165366#c8
Marius Tomaschewski
Wicked maintainers: Does wicked create the ifcfg- files, or just read from them as legacy source of information? If so, any guidance on how the code should work to determine a DHCP vs static IP boot?
Wicked never creates any ifcfg files or another kind of interface configuration. This is done by yast2-network or the user. Wicked reads the following configurations by default: - ibft firmware config from sysfs - ifcfg-* files from /etc/sysconfig/network/ - *.xml files from /etc/wicked/ifconfig/ the last source is kind of experimental / not (yet) really supported because 99.9% of the system does not have any clue about. The BOOTPROTO can be set to "dhcp", "dhcp4", "dhcp6" + combinations with e.g. "+autoip" behind, ... So I'd use: case $BOOTPROTO in static) printf 'ip=%s:static ' ${ifname} ;; *dhcp*) printf 'ip=%s:%s ' ${ifname} ${bootproto} ;; esac There is a BOOTPROTO=6to4 artifact which is basically also BOOTPROTO=static. -- You are receiving this mail because: You are on the CC list for the bug.