Public bug reported:

Binary package hint: grub

I have always had manual kernels installed and a windows next to linux; so I 
had manually altered the menu.lst file. Unaware of the implementation of 
update-grub I had (mostly likely accidentally) removed the "magic marker lines" 
from the menu.lst file. 
(I am guessing all the the info I'm giving in this text based on reading the 
update-grub code while trying to find what went wrong)

 552 # Magic markers we use
 553 start="### BEGIN AUTOMAGIC KERNELS LIST"
 554 end="### END DEBIAN AUTOMAGIC KERNELS LIST"

The fallback behaviour on not finding the markers (which isn't there...)
is kinda harsh: you end up with a semi-empty menu.lst not containing any
kernels; while the update-grub tool tells me it has found and correctly
installed those kernels in the file (which is obviously not true).

Basically this line of code fails:
1043         sed -n -e"/$endopt/,/$end/p" < $menu > $ucf_menu_file

making also the following code "fail" leaving the ucf_menu_file empty:
1050     ucf --debconf-ok \
1051         --debconf-template grub/update_grub_changeprompt_threeway \
1052         --three-way "$buffer" $ucf_menu_file

afterwards the $buffer is deleted and thus all the found kernels are
discarded.

cheers,
Toon

ProblemType: Bug
Architecture: amd64
Date: Fri Oct 16 16:11:39 2009
DistroRelease: Ubuntu 9.10
NonfreeKernelModules: nvidia
Package: grub 0.97-29ubuntu58 [modified: usr/sbin/update-grub]
ProcEnviron:
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-14.47-generic
SourcePackage: grub
Uname: Linux 2.6.31-14-generic x86_64

** Affects: grub (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug

-- 
Update-grub installs empty menu.lst when marker lines are not found
https://bugs.launchpad.net/bugs/453154
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to