grub-install does not override config

Bug #1048385 reported by [mrs_sheep]
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
grub2 (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

I played around with my grub-configuration ( /etc/grub.d/ ) - very stupid, I know - and broke it completely. See here, "alloc magic is broken" http://askubuntu.com/questions/183601/cant-boot-no-grub-alloc-magic-is-broken.

I then started to reinstall grub from a live CD (more or less with sudo grub-install --root-directory=/mnt /dev/sda ).

This did not change anything and after playing around a while I checked the grub.conf and saw that the old error still remained.
It turned out that though reinstalling it would use the old configuration (the broken one.)

I'd suggest grub-install to ask the user whether to override or to back it up. (and .bak to the files does NOT work)

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: grub2 (not installed)
ProcVersionSignature: Ubuntu 3.2.0-29.46-generic 3.2.24
Uname: Linux 3.2.0-29-generic x86_64
ApportVersion: 2.0.1-0ubuntu12
Architecture: amd64
CheckboxSubmission: 236a6ecab42f5f00606cd37059f07dc1
CheckboxSystem: 5a5f83b1a22238119772e525a902a417
Date: Sun Sep 9 15:48:43 2012
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release amd64 (20110427.1)
SourcePackage: grub2
UpgradeStatus: Upgraded to precise on 2012-04-26 (136 days ago)

Revision history for this message
[mrs_sheep] (mrs-sheep) wrote :
Revision history for this message
Phillip Susi (psusi) wrote :

This is by design; it is update-grub, not grub-install that is responsible for generating the config file.

Changed in grub2 (Ubuntu):
status: New → Invalid
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.