This script will predict the interface names generated by systemd, before the system has booted and assigned names, and update the network interfaces configs with the new name. i.e. After a release upgrade, so you can reboot the system without losing network access.
Tested on Ubuntu 14.04 to 16.04 upgrades.
The script should be run after do-release-upgrade, but before you reboot.
./systemd-update-ifnames
Copyright © 2017 Gabe Van Engel
This program is free software. It comes without any warranty, to the extent permitted by applicable law. You can redistribute it and/or modify it under the terms of the Do What The Fuck You Want To Public License, Version 2, as published by Sam Hocevar. See http://www.wtfpl.net/ for more details.