Merge "Show detailed grub update logs"

This commit is contained in:
Zuul 2024-11-20 21:59:11 +00:00 committed by Gerrit Code Review
commit 89df24b7e9
2 changed files with 3 additions and 1 deletions

View File

@ -25,7 +25,7 @@ module Puppet::Parser::Functions
expected.split().each do |element|
value = cmd_array.include?(element)
if value == false
Puppet.debug("#{element} is not presented in #{cmd}")
Puppet.info("#{element} is not presented in #{cmd}")
return value
end
end

View File

@ -143,6 +143,8 @@ class platform::compute::grub::update
logoutput => true,
}
} 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':
command => "/usr/local/bin/puppet-update-grub-env.py --remove-kernelparams '${to_be_removed}'",
}