voxpupuli / puppet-augeasproviders_grub

Augeas-based grub type and providers
Apache License 2.0
9 stars 33 forks source link

Debian 10 - kernel parameter does not work #52

Open linuxdan opened 4 years ago

linuxdan commented 4 years ago

kernel_parameter { 'quiet': ensure => absent, }

And I still see it in /etc/default/grub and /boot/grub/grub.cfg

A debug puppet agent run says Nothing to manage. no ensure and the resource doesn't exist

kenyon commented 3 years ago

quiet is normally in GRUB_CMDLINE_LINUX_DEFAULT, so you have to also set bootmode => default, then this module works as expected:

  kernel_parameter { 'quiet':
    ensure   => absent,
    bootmode => default,
  }
kenyon commented 3 years ago

Actually, the documentation seems to imply that doing simply as you stated, leaving bootmode at the default of all, and using ensure => absent, the parameter should be removed from both GRUB_CMDLINE_LINUX_DEFAULT and GRUB_CMDLINE_LINUX. So I think this is a bug.

toggetit commented 1 year ago

Hello! Is anybody found solution for this bug?