Bug#354243: Aptitude Overwrites /boot/grub/menu.lst without ANY prompt

2006-02-25 Thread Christian Perrier
  update-grub is run because you asked for it. Please look in
  /etc/kernel-img.conf, you'll probably find:
 
 Which I have never changed or even opened.
 
 And this has happened on 2, yes 2 different systems.
 
 So if this is not aptitude, there is still an issue that using aptitude 
 for a standard upgrade overwrites an important configuration file.

The same would have happened by using apt-get

 Now *if* I had made the changes, yes, the I should know the impact of 
 what I did, but since this is a default setup, somewhere, the end 
 effect is that using aptitude on Stable, which should be safe, can 
 quickly render a system unbootable.

I suggest you also read the comments in /boot/grub/menu.lst. They
explain very well that some sections of the file are likely to be
overwritten when the file is regenerated by update-grub.

I guess that the update you made installed a new kernel image...which
trigger an update of the grub menu file when the postinst script of
the kernel image package is run.


 The postinst_hook may be set, but *I* never set it and on the effect 
 systems, I have never done a thing with the kernel or changed any 
 kernel settings.

Then something else changed it...but I have no idea what did so. The
file does not belong to any package.

Certainly the bug is not, definitely not, an aptitude bug. You can't
blame aptitude for every problem happening with packages it installs.


 mean where should I file the issue that during aptitude upgrade 
 update-grub is run as a default behavior?  This is not documented or 

To a -user list, to the kernel development list...whatever.




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#354243: Aptitude Overwrites /boot/grub/menu.lst without ANY prompt

2006-02-24 Thread Hal Vaughan
To: [EMAIL PROTECTED]
From: [EMAIL PROTECTED]
Subject: Aptitude Overwrites /boot/grub/menu.lst without ANY prompt
Package: aptitude

When I did a recent aptitude update  aptitude upgrade I received the 
prompt that I would have to reboot since kernel modules that were the 
same version as my kernel were being updated.  In this entire message 
neither grub nor /boot/grub/menu.lst were mentioned.  When I rebooted, 
the system could not boot because update-grub had been run, totally 
re-writing my menu.lst file.

For all other configuration files, especially files in /etc, Aptitude 
prompts and asks if I want to update them or keep my current version.  
There is no such prompt or warning for menu.lst.  It is overwritten 
without providing a choice of saving it, backing it up, or even 
informing the user this is happening.

I consider rate this as a severe bug.

If it will take time to add the ability to back up the file, I would 
suggest at least prompting the user, telling them it is about to be 
overwritten and suggesting they back it up before overwriting it.  The 
ideal fix would be to provide the same prompt for menu.lst that is 
provided for all other configuration files.

This occurred on a Sarge system, using the 2.6.8 kernel.

Hal Vaughan
[EMAIL PROTECTED]