Skip to content

Conversation

@BogdanEmilian
Copy link

Current version does not handle the case of already existing etc/udev/rules.d/70-persistent-net.rules, so this case will add the file etc/udev/rules.d/99-coriolis-net.rules that will overwrite those configurations and apply them for the interfaces.

Writing a file to overwrite the 70-persistent-net.rules if existing or adding if not existent
coriolis_udev_rules_file = "etc/udev/rules.d/99-coriolis-net.rules"
if net_ifaces_info:
content = utils.get_udev_net_rules(net_ifaces_info)
if not self._test_path(udev_file):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't need to write to the original file anymore, we can simply use the custom one. Please write directly to that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants