[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Whether should grub2 write MBR automatic

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.

apart from the 'i want to use the bootloader to write it to a medium and
not to make my computer boot it' use case, which is a big problem for
live stuff in itself and needs to be fixed before we'll ever really
support building grub booted images in live-build (and which is why e.g.
extlinux defaults to 'no' for that debconf question)...

the more immanent issue with this behaviour is that when you install
more than one bootloader (and all would do the same), the users machine
would have random bootloader in his mbr, depending on which postinst run

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 whatever) to solve

a) not re-invent the wheel over and over again (currently, grub has its
postinst foo, and extlinux does some other postinst foo too), and

b) to ensure only one bootloader writes to the mbr at the time

however, got not arround to do it, yet.

Address:        Daniel Baumann, Donnerbuehlweg 3, CH-3012 Bern
Email:          daniel.baumann@progress-technologies.net
Internet:       http://people.progress-technologies.net/~daniel.baumann/

Reply to: