Closed sandynomad closed 4 years ago
@trevor-vaughan I see you code that part in https://github.com/hercules-team/augeasproviders_grub/blob/master/lib/puppet/provider/kernel_parameter/grub2.rb#L88-L108, what's your take on it?
Interesting. This may be a RHEL quirk that I ended up testing around. @sandynomad What OS are you working against?
The behaviour reported was on CentOS 7.5.
@trevor-vaughan were you able to reproduce?
When using grub2 the initial state in /etc/default/grub includes:
GRUB_CMDLINE_LINUX populated GRUB_CMDLINE_LINUX_DEFAULT absent
Used:
results in GRUB_CMDLINE_LINUX_DEFAULT being copied from GRUB_CMDLINE_LINUX and then massaged by the lens.
The resultant kernel boot line includes duplicate entries. According to the grub2 manual (https://www.gnu.org/software/grub/manual/grub/grub.html):
‘GRUB_CMDLINE_LINUX_DEFAULT’
Desired behaviour is for GRUB_CMDLINE_LINUX_DEFAULT to not being populated from GRUB_CMDLINE_LINUX as they maybe concatenated when generating the grub.conf