Re: Whether should grub2 write MBR automatic

2011-06-22 Thread Andrei POPESCU
On Mi, 22 iun 11, 22:06:53, Daniel Baumann wrote: > On 06/22/2011 08:10 PM, Andrei POPESCU wrote: > > The various *dm packages do this quite well in my experience and I don't > > see any -common package. > > which is extremely stupid in every way there is (code duplication, l10n > dublication, et

Re: Whether should grub2 write MBR automatic

2011-06-22 Thread Daniel Baumann
On 06/22/2011 08:10 PM, Andrei POPESCU wrote: > The various *dm packages do this quite well in my experience and I don't > see any -common package. which is extremely stupid in every way there is (code duplication, l10n dublication, etc.). -- Address:Daniel Baumann, Donnerbuehlweg 3, CH

Re: Whether should grub2 write MBR automatic

2011-06-22 Thread Ben Hutchings
On Wed, Jun 22, 2011 at 09:08:01PM +0200, Bastian Blank wrote: > On Wed, Jun 22, 2011 at 05:07:52AM +0100, Ben Hutchings wrote: > > And the first behaviour is > > definitely the correct default, as installing a boot loader package > > almost always means yo

Re: Whether should grub2 write MBR automatic

2011-06-22 Thread Bastian Blank
On Wed, Jun 22, 2011 at 05:07:52AM +0100, Ben Hutchings wrote: > And the first behaviour is > definitely the correct default, as installing a boot loader package > almost always means you want to install the boot loader in the boot > sector. The boot secto

Re: Whether should grub2 write MBR automatic

2011-06-22 Thread Andrei POPESCU
On Mi, 22 iun 11, 13:37:35, Daniel Baumann wrote: > > but there should be only one bootloader at the time be allowed to write > itself automatically (upon updates) to the systems mbr, which is why > i've talked with colin about that debconf proposing to create a > bootloader-common package (or wha

Re: Whether should grub2 write MBR automatic

2011-06-22 Thread Paul Wise
On Wed, Jun 22, 2011 at 8:21 PM, Didier Raboud wrote: > could win32-loader (either in it's "CD" or in its "standalone (on mirrors)" > version) help to setup this ? If so, a detailed bug would be appreciated. Will need to think about it a bit (and the box I do this on is having disk errors), perha

Re: Whether should grub2 write MBR automatic

2011-06-22 Thread Luke Faraone
On 06/22/2011 03:07 AM, YunQiang Su wrote: >> Did you? Try 'dpkg-reconfigure grub-pc' ;) >> > yes it works. BUT: > > When installing, user will usually install grub in MBR or they have > no choice to set it when install (install from LiveCD). If you install with a low debconf priority, or use p

Re: Whether should grub2 write MBR automatic

2011-06-22 Thread Didier Raboud
Le mercredi, 22 juin 2011 12.01:08, Paul Wise a écrit : > My strategy with Windows is to let it have the MBR and use Debian's > setup.exe to create an item for Debian in the Windows boot menu and > chainload Debian grub-pc from the Windows grub installed by setup.exe. > Seems to work find even thou

Re: Whether should grub2 write MBR automatic

2011-06-22 Thread Daniel Baumann
On 06/22/2011 01:20 PM, Evgeni Golov wrote: > I e.g. have extlinux installed as a package, but not in the mbr (for > preparing bootable usb drives with unetbootin). > The same might apply for grub(.*) because you want to create a bootable > efi disk while your machine has pc bios and vice versa. a

Re: Whether should grub2 write MBR automatic

2011-06-22 Thread Evgeni Golov
On 06/22/2011 06:07 AM, Ben Hutchings wrote: > More packages means more user confusion. And the first behaviour is > definitely the correct default, as installing a boot loader package > almost always means you want to install the boot loader in the boot > sector. > > What is your use case for th

Re: Whether should grub2 write MBR automatic

2011-06-22 Thread Paul Wise
On Wed, Jun 22, 2011 at 5:57 PM, michael kapelko wrote: > Windows writes to MBR no matter what. Mac OS X does it too, I guess? > Because of Windows, I always install Linux after Windows. I guess > there's no way around here, Windows doesn't detect Linux anyway. I > don't know if Mac OS X does it.

Re: Whether should grub2 write MBR automatic

2011-06-22 Thread michael kapelko
2011/6/22 YunQiang Su : > Yes, if only for Linux distro, it can be done like this. > Then if there are Windows and Mac OS X? Windows writes to MBR no matter what. Mac OS X does it too, I guess? Because of Windows, I always install Linux after Windows. I guess there's no way around here, Windows do

Re: Bug#631224: Whether should grub2 write MBR automatic

2011-06-22 Thread Colin Watson
On Wed, Jun 22, 2011 at 05:07:52AM +0100, Ben Hutchings wrote: > On Wed, 2011-06-22 at 11:33 +0800, YunQiang Su wrote: > > When update to grub-pc 1.99-8, it write my MBR, then I report a bug. > > > > http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=631224 > > > > and Colin Watson tell me that it

Re: Bug#631224: Whether should grub2 write MBR automatic

2011-06-22 Thread Colin Watson
On Wed, Jun 22, 2011 at 03:09:12PM +0800, YunQiang Su wrote: > When installing, user will usually install grub in MBR or they have no > choice to set it when install (install from LiveCD). If you mean the Ubuntu live CD, IIRC it does have an option for this although only when you're doing manual p

Re: Bug#631224: Whether should grub2 write MBR automatic

2011-06-22 Thread Colin Watson
On Wed, Jun 22, 2011 at 02:26:31PM +0800, YunQiang Su wrote: > But once upgrade Ubuntu, the MBR is taken place, and once then upgrade > Debian, it's back. 'dpkg-reconfigure grub-pc' on the Ubuntu side, then - it's not that complicated. -- Colin Watson [cjwat

Re: Bug#631224: Whether should grub2 write MBR automatic

2011-06-22 Thread Colin Watson
On Wed, Jun 22, 2011 at 02:06:13PM +0800, Aron Xu wrote: > grub-pc will write MBR every time when triggered, grub-pc does not use any dpkg triggers. > and grub-pc-bin will not update grub entry after the kernel is > updated. - It is weird when you have grub installed to an alternative > place, th

Re: Re: Whether should grub2 write MBR automatic

2011-06-22 Thread Fabian Greffrath
The second behavior means that: when update/reinstall grub or update/install/reinstall kernel will call update-grub but not call grub-install. What if the updated grub is incompatible with the bootloader installed by a previous version of grub? -- To UNSUBSCRIBE, email to debian-devel-requ..

Re: Whether should grub2 write MBR automatic

2011-06-22 Thread YunQiang Su
> > I suspect you should have grub installed in a single distro only, > e.g., only Debian, or only Ubuntu. Since there's only one MBR, thre's > only one bootloader, you don't need to have it in every distro. > > Yes, if only for Linux distro, it can be done like this. Then if there are Windows and

Re: Whether should grub2 write MBR automatic

2011-06-22 Thread michael kapelko
2011/6/22 YunQiang Su : > > now I installed one Debian Sid/Experimental and an Ubuntu 11.10. > I perfer Debian to take control my MBR. > > But once upgrade Ubuntu, the MBR is taken place, and once then upgrade > Debian, it's back. > > I hate this behavior. > > I believe that the MBR must be taken c

Re: Re: Whether should grub2 write MBR automatic

2011-06-22 Thread YunQiang Su
> What if the updated grub is incompatible with the bootloader installed by a > previous version of grub? > If so, it should not be called grub2 again. -- YunQiang Su -- To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...

Re: Whether should grub2 write MBR automatic

2011-06-22 Thread YunQiang Su
> Did you? Try 'dpkg-reconfigure grub-pc' ;) > yes it works. BUT: When installing, user will usually install grub in MBR or they have no choice to set it when install (install from LiveCD). and I can not find out any necessity to run grub-install every time. -- To UNSUBSCRIBE, email to debia

Re: Whether should grub2 write MBR automatic

2011-06-21 Thread Andrei POPESCU
On Mi, 22 iun 11, 14:06:13, Aron Xu wrote: > > grub-pc will write MBR every time when triggered, and grub-pc-bin will > not update grub entry after the kernel is updated. - It is weird when > you have grub installed to an alternative place, then you upgrade a > package and it write MBR regardless

Re: Whether should grub2 write MBR automatic

2011-06-21 Thread YunQiang Su
> Maybe what needs to be fixed is grub not writing to your “alternative > place”? > now I installed one Debian Sid/Experimental and an Ubuntu 11.10. I perfer Debian to take control my MBR. But once upgrade Ubuntu, the MBR is taken place, and once then upgrade Debian, it's back. I hate this behav

Re: Whether should grub2 write MBR automatic

2011-06-21 Thread Yves-Alexis Perez
On mer., 2011-06-22 at 14:06 +0800, Aron Xu wrote: > > What is your use case for the second behaviour? > > > > grub-pc will write MBR every time when triggered, and grub-pc-bin will > not update grub entry after the kernel is updated. - It is weird when > you have grub installed to an alternative

Re: Whether should grub2 write MBR automatic

2011-06-21 Thread Yves-Alexis Perez
On mer., 2011-06-22 at 14:10 +0800, YunQiang Su wrote: > > What is your use case for the second behaviour? > > > The second behavior means that: when update/reinstall grub or > update/install/reinstall kernel will call update-grub but not call > grub-install. Let me rephrase what Ben asked: why

Re: Whether should grub2 write MBR automatic

2011-06-21 Thread YunQiang Su
> On Wed, 2011-06-22 at 11:33 +0800, YunQiang Su wrote: >> When update to grub-pc 1.99-8, it write my MBR, then I report a bug. >> >> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=631224 >> >> and Colin Watson tell me that it's a new feature. >> Y, it maybe, he tell to install grub-pc-bin only,

Re: Whether should grub2 write MBR automatic

2011-06-21 Thread Aron Xu
On Wed, Jun 22, 2011 at 12:07, Ben Hutchings wrote: > > More packages means more user confusion.  And the first behaviour is > definitely the correct default, as installing a boot loader package > almost always means you want to install the boot loader in the boot > sector. > > What is your use ca

Re: Whether should grub2 write MBR automatic

2011-06-21 Thread Ben Hutchings
On Wed, 2011-06-22 at 11:33 +0800, YunQiang Su wrote: > When update to grub-pc 1.99-8, it write my MBR, then I report a bug. > > http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=631224 > > and Colin Watson tell me that it's a new feature. > Y, it maybe, he tell to install grub-pc-bin only, but t

Whether should grub2 write MBR automatic

2011-06-21 Thread YunQiang Su
When update to grub-pc 1.99-8, it write my MBR, then I report a bug. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=631224 and Colin Watson tell me that it's a new feature. Y, it maybe, he tell to install grub-pc-bin only, but this package has no kernel hook even. Here is my suggestion: m