Commit b2906100 authored by m.pausch's avatar m.pausch
Browse files

Update initramfs when interfaces are renamed

parent cd0145db
......@@ -6,4 +6,4 @@ description 'System Software configuration and maintenance'
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
source_url 'https://github.com/GSI-HPC/sys-chef-cookbook'
issues_url 'https://github.com/GSI-HPC/sys-chef-cookbook/issues'
version '1.29.1'
version '1.29.2'
......@@ -56,7 +56,9 @@ if node['platform_version'].to_i >= 9 && !node['sys']['networkd'].empty?
helpers(Sys::Harry)
mode "0644"
variables(:sections => {'Match' => {'MACAddress' => mac}, 'Link' => {'Name' => name}})
notifies :reload, "service[systemd-networkd]"
notifies :reload, 'service[systemd-networkd]'
# initramfs needs to be updated, when systemd.link-files change.
notifies :run, 'execute[update-initramfs]'
end
end
......@@ -92,4 +94,10 @@ if node['platform_version'].to_i >= 9 && !node['sys']['networkd'].empty?
supports :status => true, :restart => true, :reload => true
action [:enable, :start]
end
# initramfs needs to be updated, when systemd.link-files change.
execute 'update-initramfs' do
action :nothing
command 'update-initramfs -u'
end
end
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