Well, because of your certainty that you didn't remove the kernels, I
took another look at the update-grub code. The part of the grub code
you cited does indeed only edit the section between the '## ## End
Default Options ##' marker and the '### END DEBIAN AUTOMAGIC KERNELS
LIST' marker; there's another section of the code that would account for
the behavior you're seeing:
# Insert the new options into the menu
if ! grep -q "^$start" $menu ; then
cat $buffer >> $menu
rm -f $buffer
else
umask 077
sed -e "/^$start/,/^$end/{
/^$start/r $buffer
d
}
" $menu > $menu.new
cat $menu.new > $menu
rm -f $buffer $menu.new
fi
So since you still have the 'start' marker in place, the section isn't
regenerated for you; but because the 'end' marker has disappeared, this
command eats the rest of the file all the way to the end, and replaces
it with an empty list (since the earlier command generated no output,
given that the markers were missing).
So yes, this is a valid bug. OTOH, as I said, we're moving away from
this update-grub entirely for karmic and beyond, and you're the first
user to ever report having this problem... so in the end, this is still
not going to get fixed, sorry.
** Changed in: grub (Ubuntu)
Status: Invalid => Won't Fix
--
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
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs