Re: [Bug 495423] Re: update-grub writes MBR without prompt or backup

2009-12-14 Thread Felix Zielcke
Am Montag, den 14.12.2009, 13:45 + schrieb Adrian Wilkins:
 
 A dist-update from Jaunty to Karmic doesn't upgrade grub to grub2
 (AFAIK), so why should a fresh install be different and upgrade the
 version of grub? 

Well Ubuntu choose the way to use GRUB 2 for new installs, but to not
change the GRUB version for updates from jaunty (or older versions).
This is more safe because GRUB Legacy supports some setups like dmraid
which GRUB 2 didn't support at all, when karmic was released. And in
these cases grub-installer still installs GRUB Legacy.

The package grub-pc itself asks via Debconf for the device it should run
grub-install onto.
But this value gets preseeded by grub-installer on new installs, with
the device where it installs GRUB to.

If you want to change or remove it run: `sudo dpkg-reconfigure grub-pc'
But if the package gets upgraded and update-grub generates a grub.cfg
which isn't 100% compatible with the GRUB version in /boot/grub and
embeding area then maybe you can't boot. That's why we implemented this.
-- 
Felix Zielcke
Proud Debian Maintainer and GNU GRUB developer

-- 
update to grub-pc writes MBR without checks, prompt or backup
https://bugs.launchpad.net/bugs/495423
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


[Bug 495423] Re: update-grub writes MBR without prompt or backup

2009-12-14 Thread Adrian Wilkins
Now I discover that this has trashed the MBR on my desktop workstation
as well (so I'm setting the status to Confirmed) ; not only have there
been updates to the package with the bootloader in, there have been
MULTIPLE updates (one of which trashed the laptop, one of which has
trashed the desktop). This has been deeply inconvenient.

A dist-update from Jaunty to Karmic doesn't upgrade grub to grub2
(AFAIK), so why should a fresh install be different and upgrade the
version of grub?

I've added the following file to my config... hopefully this will
suppress the package updates and thus this behaviour, but I'll be
keeping a sharp eye on the updates list in future.

# /etc/apt/apt.conf.d/02holdgrub

HoldPkgs { grub-pc; };


** Changed in: grub2 (Ubuntu)
   Status: New = Confirmed

** Summary changed:

- update-grub writes MBR without prompt or backup
+ update to grub-pc writes MBR without checks, prompt or backup

-- 
update to grub-pc writes MBR without checks, prompt or backup
https://bugs.launchpad.net/bugs/495423
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


[Bug 495423] Re: update-grub writes MBR without prompt or backup

2009-12-11 Thread Adrian Wilkins
Found the bit of the apt log.

Oh, I'd rate this as Critical in terms of importance (although I'm
biased). Things that are routine system updates should never do
potentially system-wrecking things. I felt slightly weird whenever I saw
that beta version moniker on the boot screen.. and now I know why.

===

Setting up grub-pc (1.97~beta4-1ubuntu4.1) ...
Installation finished. No error reported.
This is the contents of the device map /boot/grub/device.map.
Check if this is correct or not. If any of the lines is incorrect,
fix it and re-run the script `grub-install'.

(hd0)   /dev/sda
(hd1)   /dev/sdb
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.31-16-generic
Found initrd image: /boot/initrd.img-2.6.31-16-generic
Found linux image: /boot/vmlinuz-2.6.31-15-generic
Found initrd image: /boot/initrd.img-2.6.31-15-generic
Found linux image: /boot/vmlinuz-2.6.31-14-generic
Found initrd image: /boot/initrd.img-2.6.31-14-generic
Found memtest86+ image: /boot/memtest86+.bin
done

-- 
update-grub writes MBR without prompt or backup
https://bugs.launchpad.net/bugs/495423
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


[Bug 495423] Re: update-grub writes MBR without prompt or backup

2009-12-11 Thread Steve Langasek
** Package changed: grub (Ubuntu) = grub2 (Ubuntu)

-- 
update-grub writes MBR without prompt or backup
https://bugs.launchpad.net/bugs/495423
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