Adds more and more copies of ‘crashkernel=384M-:128M’ in /etc/default/grub when upgrading or reinstalling grub-pc

Bug #1318111 reported by Anders Kaseorg on 2014-05-10
42
This bug affects 9 people
Affects Status Importance Assigned to Milestone
kexec-tools (Ubuntu)
Medium
Louis Bouchard
Trusty
Undecided
Louis Bouchard

Bug Description

# grep GRUB_CMDLINE_LINUX_DEFAULT /etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash crashkernel=384M-:128M"
# apt-get install --reinstall grub-pc

# grep GRUB_CMDLINE_LINUX_DEFAULT /etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash crashkernel=384M-:128M crashkernel=384M-:128M"
# apt-get install --reinstall grub-pc

# grep GRUB_CMDLINE_LINUX_DEFAULT /etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash crashkernel=384M-:128M crashkernel=384M-:128M crashkernel=384M-:128M"
# apt-get install --reinstall grub-pc

# grep GRUB_CMDLINE_LINUX_DEFAULT /etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash crashkernel=384M-:128M crashkernel=384M-:128M crashkernel=384M-:128M crashkernel=384M-:128M"

ProblemType: Bug
DistroRelease: Ubuntu 14.10
Package: kexec-tools 1:2.0.6-0ubuntu2
Uname: Linux 3.15.0-031500rc4-generic x86_64
NonfreeKernelModules: openafs
ApportVersion: 2.14.2-0ubuntu2
Architecture: amd64
Date: Fri May 9 22:39:32 2014
EcryptfsInUse: Yes
InstallationDate: Installed on 2010-12-05 (1251 days ago)
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Alpha amd64 (20101202)
SourcePackage: kexec-tools
UpgradeStatus: Upgraded to utopic on 2013-10-31 (190 days ago)

Anders Kaseorg (andersk) wrote :
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in kexec-tools (Ubuntu):
status: New → Confirmed
Changed in kexec-tools (Ubuntu):
importance: Undecided → Medium
Christian Reis (kiko) wrote :

Same here on current trusty.

Shahar Or (mightyiam) wrote :

Does anyone have a workaround, please?

TJ (tj) wrote :

replace the content of /etc/default/grub.d/kexec-tools.cfg with:

KEXEC_TOAPPEND="crashkernel=384M-:128M"

case "$GRUB_CMDLINE_LINUX_DEFAULT" in
    *$KEXEC_TOAPPEND*)
        ;;
    *)
        GRUB_CMDLINE_LINUX_DEFAULT="$GRUB_CMDLINE_LINUX_DEFAULT $KEXEC_TOAPPEND"
        ;;
esac

Louis Bouchard (louis) on 2015-11-30
no longer affects: kexec-tools (Ubuntu Wily)
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in kexec-tools (Ubuntu Trusty):
status: New → Confirmed
Louis Bouchard (louis) on 2016-05-23
Changed in kexec-tools (Ubuntu Trusty):
assignee: nobody → Louis Bouchard (louis-bouchard)
Changed in kexec-tools (Ubuntu):
assignee: nobody → Louis Bouchard (louis-bouchard)
Zephyr (pasha-pivo) wrote :

I have the same bug on my Ubuntu 16.04

Thomas Bonse (hwobu2) wrote :

I can also confirm that this bug remains in Ubuntu 16.04 LTS.

Thomas Bonse (hwobu2) wrote :

Also remains in Ubuntu 16.04.02 LTS.

Yovan ZJW (jiabanster) wrote :

It remains on Ubuntu 16.04.3 LTS

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers