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
puppet-manifests/src/modules/platform
lib/puppet/parser/functions
manifests

@ -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}'",
} }