-
Notifications
You must be signed in to change notification settings - Fork 246
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Include systemd/network to preserve Predictable Network Interface Names #1349
Conversation
- Some modern distros (like ubuntu16.04) use systemd to control inet naming. Those information are stored in /lib/systemd/network or /usr/lib/systemd/network.
@schabrolles |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
O.k. for me from plain looking at the code.
In particular I appreciate the added
explanatory comment that tells about
why that is added to the rescue image.
@gdha |
@jsmeix Some changes will be required in
=> There is still some work for migration.... I notice that "modern" distros doesn't seems to use |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@schabrolles @jsmeix We will test it out tomorrow or so with our Automated Test environment (only for CentOS 7 for the moment)
@jsmeix Do not merge it yet until Sebastien has finished his code (and tested from his side) |
@schabrolles |
@jsmeix for recovery on "same" hardware (i.e. for "non-migration") it works well... Tested on Ubuntu 16.04 |
@gdha I hope there cannot be regressions when there are some more |
See also issue #1400 - I will be using Ubuntu 16.04 next week in my automated testing rounds |
Some modern distros (like ubuntu16.04) use systemd to control inet naming.
Those information are stored in
/lib/systemd/network
or/usr/lib/systemd/network
.For example, my system in Ubuntu16.04 uses Predictable interface name by default : enp0s1
I'm not a big fan of Predictable interface name, but it seems to become the new standard (Fedora 25 / Ubuntu 16.04, CoreOS...)
When I boot to the rescue image, the interface is renamed eth0 => with NO IP because of name chaged.
I think we should add
/lib/systemd/network
or/usr/lib/systemd/network
to the rescue image as we want to "replicate" network configuration from the original machine when booting on the rescue image.If the user doesn't like the "Predictable naming", it could add
net.ifnames=0
or change the configuration file/lib/systemd/network/99-default.link
(which will be saved in the rescue image)