diff --git a/cookbooks/fb_dracut/recipes/default.rb b/cookbooks/fb_dracut/recipes/default.rb index 60069f05..bb92155d 100644 --- a/cookbooks/fb_dracut/recipes/default.rb +++ b/cookbooks/fb_dracut/recipes/default.rb @@ -43,12 +43,13 @@ not_if { node.container? || node.quiescent? || node['fb_dracut']['disable'] } command 'dracut --force' action :nothing + subscribes :run, 'template[/etc/sysctl.conf]' + subscribes :run, 'package[e2fsprogs]' + subscribes :run, 'template[/etc/e2fsck.conf]' + subscribes :run, 'template[/etc/modprobe.d/fb_modprobe.conf]' + subscribes :run, 'template[/etc/fstab]' if node.systemd? subscribes :run, 'package[systemd packages]' subscribes :run, 'template[/etc/systemd/system.conf]' - subscribes :run, 'template[/etc/sysctl.conf]' - subscribes :run, 'package[e2fsprogs]' - subscribes :run, 'template[/etc/e2fsck.conf]' - subscribes :run, 'template[/etc/modprobe.d/fb_modprobe.conf]' end end