Debian Bug report logs - #611045
debian-installer: find a better way of detecting default GRUB bootloader install location

Package: grub-installer; Maintainer for grub-installer is Debian Install System Team <debian-boot@lists.debian.org>; Source for grub-installer is src:grub-installer.

Reported by: Tobias Bußmann <e.t.bussmann@ing.twinwave.net>

Date: Tue, 25 Jan 2011 02:06:02 UTC

Severity: wishlist

Tags: d-i

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, e.t.bussmann@ing.twinwave.net, Debian Install System Team <debian-boot@lists.debian.org>:
Bug#611045; Package debian-installer. (Tue, 25 Jan 2011 02:06:05 GMT) Full text and rfc822 format available.

Acknowledgement sent to Tobias Bußmann <e.t.bussmann@ing.twinwave.net>:
New Bug report received and forwarded. Copy sent to e.t.bussmann@ing.twinwave.net, Debian Install System Team <debian-boot@lists.debian.org>.

Your message had a Version: pseudo-header with an invalid package version:

squeeze RC2

please either use found or fixed to the control server with a correct version, or reply to this report indicating the correct version so the maintainer (or someone else) can correct it for you.

(Tue, 25 Jan 2011 02:06:05 GMT) Full text and rfc822 format available.


Message #5 received at submit@bugs.debian.org (full text, mbox):

From: Tobias Bußmann <e.t.bussmann@ing.twinwave.net>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: debian-installer: GRUB always installs in /dev/sda
Date: Sat, 15 Jan 2011 14:57:42 +0100
Package: debian-installer
Version: squeeze RC2
Severity: serious
Tags: d-i


despite the Release Notes of Squeeze RC2 state that the Grub install problem
is solved (#568529), I still see a (major in some cases) problem:

Using Expert Mode GRUB is always installed on /dev/sda when you allow it to 
install in the bootloader. This is a problem in some situations like haveing 
the BIOS configured to boot from a different HDD or when using GPT partitioning
scheme where you need to prepare a special GRUB BIOS boot partition.
If Grub fails on /dev/sda the installer gives the error and aborts. I think
(esp. in expert mode) the user should be asked where to install the bootloader.
Default should be the device where /boot is located or where it finds a BIOS 
boot partition on GPT drives.

I've seen this problem on a big server system with additional hardware SAS
RAID controller for booting and I was able to reproduce it easily with msdos
and GPT partition tables in VMware (you have to edit the .vmx file to choose
a boot order of 'bios-hddOrder = "ide0:1"' and assign 2 IDE drives)

Installs on the server were done by the rc2 amd64 netinst iso dd'ed to a usb-
stick, in VMware I mounted the iso directly into the virtual CD drive.

Setting the servity to serious because in analogy with similar bug #568529

-- System Information:
Debian Release: 6.0
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash




Information forwarded to debian-bugs-dist@lists.debian.org, Debian Install System Team <debian-boot@lists.debian.org>:
Bug#611045; Package debian-installer. (Tue, 25 Jan 2011 02:36:05 GMT) Full text and rfc822 format available.

Acknowledgement sent to Tobias Bußmann <e.t.bussmann@ing.twinwave.net>:
Extra info received and forwarded to list. Copy sent to Debian Install System Team <debian-boot@lists.debian.org>. (Tue, 25 Jan 2011 02:36:05 GMT) Full text and rfc822 format available.

Message #10 received at 611045@bugs.debian.org (full text, mbox):

From: Tobias Bußmann <e.t.bussmann@ing.twinwave.net>
To: <611045@bugs.debian.org>
Subject: Re: Bug#611045: debian-installer: GRUB always installs in /dev/sda
Date: Tue, 25 Jan 2011 03:23:46 +0100
serverity 611045 wishlist
retitle 611045 debian-installer: find a better way of detecting default GRUB
bootloader install location
thanks

I just realized that if you answer 'no' on the question if grub shall be
installed in the MBR, you can not only specify a partition as an alternative
location but also the MBR of a different device. I must have misunderstood
that question. If you specify the location for installation, grub installs
just fine.

So the remaining part bug / feature request is to have a better algorithm to
find the default location for intalling the bootloader to instead of using
always the MBR of the first disk.





Information forwarded to debian-bugs-dist@lists.debian.org, Debian Install System Team <debian-boot@lists.debian.org>:
Bug#611045; Package debian-installer. (Tue, 25 Jan 2011 06:51:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to "Adam D. Barratt" <adam@adam-barratt.org.uk>:
Extra info received and forwarded to list. Copy sent to Debian Install System Team <debian-boot@lists.debian.org>. (Tue, 25 Jan 2011 06:51:02 GMT) Full text and rfc822 format available.

Message #15 received at 611045@bugs.debian.org (full text, mbox):

From: "Adam D. Barratt" <adam@adam-barratt.org.uk>
To: Tobias Bußmann <e.t.bussmann@ing.twinwave.net>, 611045@bugs.debian.org
Subject: Re: Bug#611045: debian-installer: GRUB always installs in /dev/sda
Date: Tue, 25 Jan 2011 06:48:19 +0000
severity 611045 wishlist
retitle 611045 debian-installer: find a better way of detecting default GRUB bootloader install location
thanks

Hi,

On Tue, 2011-01-25 at 03:23 +0100, Tobias Bußmann wrote:
> serverity 611045 wishlist
> retitle 611045 debian-installer: find a better way of detecting default GRUB
> bootloader install location
> thanks

You need to (B)CC control@bugs.d.o in order for the commands to take
effect (BCC generally preferred as it means that the address doesn't end
up being CCed on replies to subsequent mails); I've done so with this
mail, thanks.

Regards,

Adam





Severity set to 'wishlist' from 'serious' Request was from "Adam D. Barratt" <adam@adam-barratt.org.uk> to control@bugs.debian.org. (Tue, 25 Jan 2011 06:51:04 GMT) Full text and rfc822 format available.

Changed Bug title to 'debian-installer: find a better way of detecting default GRUB bootloader install location' from 'debian-installer: GRUB always installs in /dev/sda' Request was from "Adam D. Barratt" <adam@adam-barratt.org.uk> to control@bugs.debian.org. (Tue, 25 Jan 2011 06:51:05 GMT) Full text and rfc822 format available.

Bug reassigned from package 'debian-installer' to 'grub-installer'. Request was from Joey Hess <joeyh@debian.org> to control@bugs.debian.org. (Tue, 25 Jan 2011 16:00:08 GMT) Full text and rfc822 format available.

Information forwarded to debian-bugs-dist@lists.debian.org, Debian Install System Team <debian-boot@lists.debian.org>:
Bug#611045; Package grub-installer. (Sat, 05 Feb 2011 14:33:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Stefano Canepa <sc@linux.it>:
Extra info received and forwarded to list. Copy sent to Debian Install System Team <debian-boot@lists.debian.org>. (Sat, 05 Feb 2011 14:33:03 GMT) Full text and rfc822 format available.

Message #26 received at 611045@bugs.debian.org (full text, mbox):

From: Stefano Canepa <sc@linux.it>
To: 611045@bugs.debian.org
Subject: Re: Bug#611045: debian-installer: GRUB always installs in /dev/sda
Date: Sat, 05 Feb 2011 15:19:58 +0100

Tobias Bußmann  at "Tue, 25 Jan 2011 03:23:46 +0100" wrote:
 TB> serverity 611045 wishlist
 TB> retitle 611045 debian-installer: find a better way of detecting default GRUB
 TB> bootloader install location
 TB> thanks

 TB> I just realized that if you answer 'no' on the question if grub shall be
 TB> installed in the MBR, you can not only specify a partition as an alternative
 TB> location but also the MBR of a different device. I must have misunderstood
 TB> that question. If you specify the location for installation, grub installs
 TB> just fine.

 TB> So the remaining part bug / feature request is to have a better algorithm to
 TB> find the default location for intalling the bootloader to instead of using
 TB> always the MBR of the first disk.

I was unable to find out the way Tobias found. I think that the question
needs to be reworded.

Bye
Stefano

-- 
Stefano Canepa aka sc: sc@linux.it - http://www.stefanocanepa.it
Three great virtues of a programmer: laziness, impatience and hubris.
Le tre grandi virtù di un programmatore: pigrizia, impazienza e
arroganza. (Larry Wall)




Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sat Apr 19 07:45:53 2014; Machine Name: beach.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.