#1030934 grub-pc: commented out GRUB_CMDLINE_LINUX_DEFAULT line gets copied uncommented in /etc/default/grub

Package:
grub-pc
Source:
grub-pc
Description:
GRand Unified Bootloader, version 2 (PC/BIOS version)
Submitter:
Arthur Marsh
Date:
2023-02-10 13:03:04 UTC
Severity:
normal
#1030934#5
Date:
2023-02-09 14:00:40 UTC
From:
To:
Dear Maintainer,

*** Reporter, please consider answering these questions, where appropriate ***

   * What led up to the situation?

upgrading or downgrading or reinstalling  the grub-pc package

   * What exactly did you do (or not do) that was effective (or
     ineffective)?

I have this line at the end of my /etc/default/grub

#GRUB_CMDLINE_LINUX_DEFAULT="amdgpu.audio=1 amdgpu.si_support=1 radeon.si_support=0 page_owner=on amdgpu.gpu_recovery=1"

If I upgrade or downgrade grub-pc, I get an extra blank line after that comment line,
then:

GRUB_CMDLINE_LINUX_DEFAULT="amdgpu.audio=1 amdgpu.si_support=1 radeon.si_support=0 page_owner=on amdgpu.gpu_recovery=1"

ie, without the comment.

This fouls up grub.cfg after re-running update-grub and shouldn't be happening.


   * What was the outcome of this action?
   * What outcome did you expect instead?

*** End of the template - remove these template lines ***

#1030934#10
Date:
2023-02-10 12:55:33 UTC
From:
To:
Dear Maintainer,

*** Reporter, please consider answering these questions, where appropriate ***

   * What led up to the situation?
   * What exactly did you do (or not do) that was effective (or
     ineffective)?

If I addeded

GRUB_CMDLINE_LINUX_DEFAULT=""

uncommented to the end of /etc/default/grub

the /etc/default/grub file dos not get modified by reinstalling grub-pc.

   * What was the outcome of this action?
   * What outcome did you expect instead?

*** End of the template - remove these template lines ***