Commit 01655c69 authored by m.pausch's avatar m.pausch
Browse files

Keep old interface names

parent 20a3117d
......@@ -26,6 +26,14 @@ if node['platform_version'].to_i >= 9 && !node['sys']['networkd'].empty?
delete = Dir.glob('/etc/systemd/network/*')
keep = []
keep << '99-default.link' unless node['sys']['networkd']['preditcable_interface_names']
sys_systemd_unit '99-default.link' do
directory '/etc/systemd/network'
action :mask
not_if { node['sys']['networkd']['predictable_interface_names'] }
end
if node['sys']['networkd']['make_primary_interface_persistent']
# This uses ohai data, so any manual change to the network interface
# will be made permanent. This flag is intended to be used by a one-time
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment