On Fri, May 11, 2007 at 08:44:32AM +0200, Robert Millan wrote: > On Thu, May 10, 2007 at 06:10:46PM -0300, Otavio Salvador wrote: > > Robert Millan <[EMAIL PROTECTED]> writes: > > > > > On Thu, May 10, 2007 at 08:57:14PM +0200, Frans Pop wrote: > > >> > > This is only valid for updates, not for new installs. > > >> > > >> So, you would only have to do this _on upgrades_ of grub-pc, not for new > > >> installs. This can be tested separately. Still no need to run anything > > >> for new installs. > > > > > > We could test if we're upgrading grub-pc, or if we're installing new > > > grub-pc > > > but grub was present before (that one is trickier, any ideas?). It would > > > also > > > be helpful for us to distinguish between the two. > > > > Maybe grub-probe might be extended to detect if there's any version > > already installed on MBR and report the GRUB version? That might be > > useful for upgrades and our bug reporting script too. > > That would require adding versioning information to boot.img. I suggest > asking > grub-devel and see what they think.
or maybe we can use "dpkg -s grub" to check if we're upgrading from grub legacy in preinst? Not sure if Policy allows that though. -- Robert Millan My spam trap is [EMAIL PROTECTED] Note: this address is only intended for spam harvesters. Writing to it will get you added to my black list. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

