Merge "Show detailed grub update logs"
This commit is contained in:
commit
89df24b7e9
puppet-manifests/src/modules/platform
@ -25,7 +25,7 @@ module Puppet::Parser::Functions
|
|||||||
expected.split().each do |element|
|
expected.split().each do |element|
|
||||||
value = cmd_array.include?(element)
|
value = cmd_array.include?(element)
|
||||||
if value == false
|
if value == false
|
||||||
Puppet.debug("#{element} is not presented in #{cmd}")
|
Puppet.info("#{element} is not presented in #{cmd}")
|
||||||
return value
|
return value
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -143,6 +143,8 @@ class platform::compute::grub::update
|
|||||||
logoutput => true,
|
logoutput => true,
|
||||||
}
|
}
|
||||||
} elsif($::osfamily == 'Debian') {
|
} elsif($::osfamily == 'Debian') {
|
||||||
|
notice("Removing kernel args: ${to_be_removed}")
|
||||||
|
notice("Adding kernel args: ${truncated_grub_updates}")
|
||||||
exec { 'Remove the cpu arguments from /boot/efi/EFI/BOOT/boot.env':
|
exec { 'Remove the cpu arguments from /boot/efi/EFI/BOOT/boot.env':
|
||||||
command => "/usr/local/bin/puppet-update-grub-env.py --remove-kernelparams '${to_be_removed}'",
|
command => "/usr/local/bin/puppet-update-grub-env.py --remove-kernelparams '${to_be_removed}'",
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user