Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
/srv/mirrors/public-debian-ports
/srv/mirrors/public-debian-security
/dev/hwrng
+ /lib/udev/rules.d/60-kpartx.rules
}.each do |path|
- Facter.add("has" + path.gsub(/[\/-]/,'_')) do
+ Facter.add("has" + path.gsub(/[\/.-]/,'_')) do
setcode do
if FileTest.exist?(path)
true
key => 'kernel.unprivileged_bpf_disabled',
value => '1',
}
+
+ # Disable kpartx udev rules
+ if $has_lib_udev_rules_d_60_kpartx_rules {
+ file { '/etc/udev/rules.d/60-kpartx.rules':
+ content => "",
+ mode => '0444',
+ }
+ }
}