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
46
This bug affects 10 people
Affects Status Importance Assigned to Milestone
kexec-tools (Ubuntu)
Confirmed
Medium
Louis Bouchard
Trusty
Confirmed
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)

Revision history for this message
Anders Kaseorg (andersk) wrote :
Revision history for this message
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
Revision history for this message
Christian Reis (kiko) wrote :

Same here on current trusty.

Revision history for this message
Shahar Or (mightyiam) wrote :

Does anyone have a workaround, please?

Revision history for this message
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)
no longer affects: kexec-tools (Ubuntu Wily)
Revision history for this message
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)
Changed in kexec-tools (Ubuntu Trusty):
assignee: nobody → Louis Bouchard (louis-bouchard)
Changed in kexec-tools (Ubuntu):
assignee: nobody → Louis Bouchard (louis-bouchard)
Revision history for this message
Zephyr (pasha-pivo) wrote :

I have the same bug on my Ubuntu 16.04

Revision history for this message
Thomas Bonse (hwobu2) wrote :

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

Revision history for this message
Thomas Bonse (hwobu2) wrote :

Also remains in Ubuntu 16.04.02 LTS.

Revision history for this message
Yovan (navoytak) wrote :

It remains on Ubuntu 16.04.3 LTS

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

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.