Arch Linux droplet and systemd update warning

March 10, 2014 3.1k views
This is just a warning to Arch Linux users who update the the latest systemd. Systemd now has "Predictable Network Interface Names". More info can be found here: http://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames/ Updating to the newest version will break networking! Requiring manual user changes. More info can be found here: https://bbs.archlinux.org/viewtopic.php?id=156283
1 Answer
This is probably a bit hackish, but here's how I worked around this after updating systemd:

# Set the netcfg default wired interface to the new interface name
# set WIRED_INTERACE="ens3" /etc/conf.d/netcfg

# Setup network@ens3 service with the previous eth0 static IP configuration
ln -s /etc/conf.d/network\@eth0 /etc/conf.d/network\@ens3
ln -s /etc/systemd/system/network\@.service /etc/systemd/system/multi-user.target.wants/network\@ens3.service
systemctl disable network@eth0.service
systemctl enable network@ens3.service

(I also updated the kernel during this - not sure if that's relevant)
Have another answer? Share your knowledge.