Debian Bug report logs - #413263
d-i: bootloader selector

version graph

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

Reported by: stappers@stappers.nl (Geert Stappers)

Date: Sat, 3 Mar 2007 19:06:01 UTC

Severity: wishlist

Found in version etch-rc2

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, Debian Install System Team <debian-boot@lists.debian.org>:
Bug#413263; Package debian-installer. Full text and rfc822 format available.

Acknowledgement sent to stappers@stappers.nl (Geert Stappers):
New Bug report received and forwarded. Copy sent to Debian Install System Team <debian-boot@lists.debian.org>. Full text and rfc822 format available.

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

From: stappers@stappers.nl (Geert Stappers)
To: submit@bugs.debian.org
Subject: d-i: bootloader selector
Date: Sat, 3 Mar 2007 19:55:37 +0100
[Message part 1 (text/plain, inline)]
Package: debian-installer
Severity: wishlist
Version: etch-RC2


Hello,

Debian-installer has strange programm code to decide which bootloader
should be installed. At least the preseed information looks strange.

# Grub is the default boot loader (for x86). If you want lilo installed
# instead, uncomment this:
#d-i	grub-installer/skip		boolean true


Thing I would like to see is

#d-i bootloader-installer/select string grub-installer


So an extra compoment that asks for which bootloader to install.

This will give more flexibility to add other architectures.

Rightnow developers have to research and to modify _two_ pieces of
code to run d-i on new hardware. ( imaginair example "openwrt-installer")

The first thing is the build system of debian-installer, where
has the be found at where "grub-installer" should be disabled
and where the start "openwrt-installer".

The second thing is their actual boot loader.

Having a the "bootloader-installer-selector" layer allows to focus
on the bootloader-installer for the new architecture.

And it makes

#d-i bootloader-installer/select string lilo-installer

and also

#d-i bootloader-installer/select string grub2-installer

possible.


Cheers
Geert Stappers

[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian Install System Team <debian-boot@lists.debian.org>:
Bug#413263; Package debian-installer. Full text and rfc822 format available.

Acknowledgement sent to stappers@stappers.nl (Geert Stappers):
Extra info received and forwarded to list. Copy sent to Debian Install System Team <debian-boot@lists.debian.org>. Full text and rfc822 format available.

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

From: stappers@stappers.nl (Geert Stappers)
To: debian-boot@lists.debian.org
Cc: 413263@bugs.debian.org
Subject: Re: Proposed release goal: Switch to GRUB2
Date: Wed, 25 Apr 2007 15:38:19 +0200
Op 25-04-2007 om 10:18 schreef Otavio Salvador:
> Sven Luther <luther@debian.org> writes:
> 
> > I wonder if we will also move from yaboot-installer to grub2-installer
> > on powerpc, and if you have given any thought to that migration path ? 
> 
> Our main goal is to switch i386 and amd64 first.

My advice to make that switch (and switch back) more easy,
is to implement a "bootselector".

Menu-item-number would the current "confirm install grub",
which is a 'boolean'. "bootselector" is 'multi select'.


Cheers
Geert Stappers
submitter of http://bugs.debian.org/413263




Information forwarded to debian-bugs-dist@lists.debian.org, Debian Install System Team <debian-boot@lists.debian.org>:
Bug#413263; Package debian-installer. Full text and rfc822 format available.

Acknowledgement sent to Otavio Salvador <otavio@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian Install System Team <debian-boot@lists.debian.org>. Full text and rfc822 format available.

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

From: Otavio Salvador <otavio@debian.org>
To: stappers@stappers.nl (Geert Stappers)
Cc: debian-boot@lists.debian.org, 413263@bugs.debian.org
Subject: Re: Proposed release goal: Switch to GRUB2
Date: Wed, 25 Apr 2007 10:54:48 -0300
stappers@stappers.nl (Geert Stappers) writes:

> Op 25-04-2007 om 10:18 schreef Otavio Salvador:
>> Sven Luther <luther@debian.org> writes:
>> 
>> > I wonder if we will also move from yaboot-installer to grub2-installer
>> > on powerpc, and if you have given any thought to that migration path ? 
>> 
>> Our main goal is to switch i386 and amd64 first.
>
> My advice to make that switch (and switch back) more easy,
> is to implement a "bootselector".
>
> Menu-item-number would the current "confirm install grub",
> which is a 'boolean'. "bootselector" is 'multi select'.

You mean for the both grub and grub2?

Well, we want to reduce the grub usage and then this shouldn't looks
to be the best way of doing it.

-- 
        O T A V I O    S A L V A D O R
---------------------------------------------
 E-mail: otavio@debian.org      UIN: 5906116
 GNU/Linux User: 239058     GPG ID: 49A5F855
 Home Page: http://otavio.ossystems.com.br
---------------------------------------------
"Microsoft sells you Windows ... Linux gives
 you the whole house."



Information forwarded to debian-bugs-dist@lists.debian.org, Debian Install System Team <debian-boot@lists.debian.org>:
Bug#413263; Package debian-installer. Full text and rfc822 format available.

Acknowledgement sent to stappers@stappers.nl (Geert Stappers):
Extra info received and forwarded to list. Copy sent to Debian Install System Team <debian-boot@lists.debian.org>. Full text and rfc822 format available.

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

From: stappers@stappers.nl (Geert Stappers)
To: 413263@bugs.debian.org
Subject: Re: Proposed release goal: Switch to GRUB2
Date: Wed, 25 Apr 2007 17:10:58 +0200
Op 25-04-2007 om 10:54 schreef Otavio Salvador:
> stappers@stappers.nl (Geert Stappers) writes:
> > My advice to make that switch (and switch back) more easy,
> > is to implement a "bootselector".

"bootloaderselector".


> You mean for the both grub and grub2?
> 
> Well, we want to reduce the grub usage and then this shouldn't looks
> to be the best way of doing it.

The "bootloaderselector" supports trancient for one bootloader to another.


This is a part from DI-ROOT/installer/doc/devel/menu-item-numbers.txt

| 7000 -> 8000 Post-base-install
| 7000 apt-setup
|      pkgsel
| 7300 palo-installer (hppa)
|      grub-installer (i386)
|      yaboot-installer (powerpc/powermac_newworld, powerpc/chrp*)
|      quik-installer (powerpc/powermac_oldworld)
|      zipl-installer (s390)
|      arcboot-installer (mips)
|      delo-installer (mipsel)
|      silo-installer (sparc)
|      vmelilo-installer (m68k/vme*)
|      glantank-installer (arm/iop32x)
| 7500 lilo-installer (i386)
| 7600 elilo-installer (ia64, i386)
| 7700 nobootloader (all)
| 7800 finish-install


With grub2 and "bootloaderselector" this will become

| 7000 -> 8000 Post-base-install
| 7000 apt-setup
|      pkgsel
+ 7200 bootloaderselector (all)
. 7500 palo-installer (hppa)
|      grub-installer (i386)
+      grub2-installer (i386,amd64,powerpc,...)
|      yaboot-installer (powerpc/powermac_newworld, powerpc/chrp*)
|      quik-installer (powerpc/powermac_oldworld)
|      zipl-installer (s390)
|      arcboot-installer (mips)
|      delo-installer (mipsel)
|      silo-installer (sparc)
|      vmelilo-installer (m68k/vme*)
|      glantank-installer (arm/iop32x)
.      lilo-installer (i386)
.      elilo-installer (ia64, i386)
.      nobootloader (all)
| 7800 finish-install


So all installers at the same menu-item-number.

The one selected by "bootloaderselector" will be installed.


Cheers
Geert Stappers




Information forwarded to debian-bugs-dist@lists.debian.org, Debian Install System Team <debian-boot@lists.debian.org>:
Bug#413263; Package debian-installer. Full text and rfc822 format available.

Acknowledgement sent to Eddy Petrișor <eddy.petrisor@gmail.com>:
Extra info received and forwarded to list. Copy sent to Debian Install System Team <debian-boot@lists.debian.org>. Full text and rfc822 format available.

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

From: Eddy Petrișor <eddy.petrisor@gmail.com>
To: Geert Stappers <stappers@stappers.nl>, 413263@bugs.debian.org
Subject: Re: Bug#413263: Proposed release goal: Switch to GRUB2
Date: Sun, 29 Apr 2007 16:23:35 +0300
[Message part 1 (text/plain, inline)]
Geert Stappers wrote:
> Op 25-04-2007 om 10:54 schreef Otavio Salvador:
>> stappers@stappers.nl (Geert Stappers) writes:
>>> My advice to make that switch (and switch back) more easy,
>>> is to implement a "bootselector".

> 
> | 7000 -> 8000 Post-base-install
> | 7000 apt-setup
> |      pkgsel
> + 7200 bootloaderselector (all)
> . 7500 palo-installer (hppa)
> |      grub-installer (i386)
> +      grub2-installer (i386,amd64,powerpc,...)
> |      yaboot-installer (powerpc/powermac_newworld, powerpc/chrp*)
> |      quik-installer (powerpc/powermac_oldworld)
> |      zipl-installer (s390)
> |      arcboot-installer (mips)
> |      delo-installer (mipsel)
> |      silo-installer (sparc)
> |      vmelilo-installer (m68k/vme*)
> |      glantank-installer (arm/iop32x)
> .      lilo-installer (i386)
> .      elilo-installer (ia64, i386)
> .      nobootloader (all)
> | 7800 finish-install
> 
> 
> So all installers at the same menu-item-number.

Which would mean fun, fun, fun since grub2 menu item would be after grub item; this would mean that grub2 needs either:
 - to be before grub2 in the order
 - not to load grub at all by default (probably the best choice)
 - force somehow, through a dependency the dependency on grub2, making grub2 the default choice

I faced the same issue with ppp-udeb for which initially I set its menu-item-number to be 18 (they were up to 100 back
then), but it was not chosen since it ordered after netcfg, so I had to set it to 17, so it has priority when is loaded.

-- 
Regards,
EddyP
=============================================
"Imagination is more important than knowledge" A.Einstein

[signature.asc (application/pgp-signature, attachment)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian Install System Team <debian-boot@lists.debian.org>:
Bug#413263; Package debian-installer. Full text and rfc822 format available.

Acknowledgement sent to stappers@stappers.nl (Geert Stappers):
Extra info received and forwarded to list. Copy sent to Debian Install System Team <debian-boot@lists.debian.org>. Full text and rfc822 format available.

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

From: stappers@stappers.nl (Geert Stappers)
To: 413263@bugs.debian.org
Subject: Re: Bug#413263: Proposed release goal: Switch to GRUB2
Date: Sun, 29 Apr 2007 16:20:17 +0200
Op 29-04-2007 om 16:23 schreef Eddy Petri??or:
> Geert Stappers wrote:
> >>> My advice to make that switch (and switch back) more easy,
> >>> is to implement a "bootselector".
   is to implement a "bootloader selector".

> 
> > + 7200 bootloaderselector (all)
> > . 7500 palo-installer (hppa)
> > |      grub-installer (i386)
> > +      grub2-installer (i386,amd64,powerpc,...)
> > |      yaboot-installer (powerpc/powermac_newworld, powerpc/chrp*)
 [ various bootloader installers ]
> > .      nobootloader (all)
> > | 7800 finish-install
> > 
> > 
> > So all installers at the same menu-item-number.
> 
> Which would mean fun, fun, fun since grub2 menu item would be after grub item;
> this would mean that grub2 needs either:
>  - to be before grub2 in the order
>  - not to load grub at all by default (probably the best choice)
>  - force somehow, through a dependency the dependency on grub2, making grub2 the default choice

[1]

The default bootloader-installer will be set during build
of the bootloader-selector. The bootloader-selector has a low
debconf priority, so it wouldn't be shown by default.

At menu item number 7200 is the 'isinstallable'-flag set to true
for the installer udeb. With a higher (more detailed) debconf priority
will the user be asked for the bootloader of choice. This is where
grub or grub2 can be selected. A bootparameter has the same effect.



Cheers
Geert Stappers


[1] Either I don't understand you or you don't understand me.
As I don't have time to explain that others are wrong,
I will spend my time on explain what I have in mind.



Information forwarded to debian-bugs-dist@lists.debian.org, Debian Install System Team <debian-boot@lists.debian.org>:
Bug#413263; Package debian-installer. Full text and rfc822 format available.

Acknowledgement sent to stappers@stappers.nl (Geert Stappers):
Extra info received and forwarded to list. Copy sent to Debian Install System Team <debian-boot@lists.debian.org>. Full text and rfc822 format available.

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

From: stappers@stappers.nl (Geert Stappers)
To: 413263@bugs.debian.org
Subject: Re: Skip bootloader
Date: Wed, 23 May 2007 22:02:53 +0200
Op 22-05-2007 om 16:35 schreef Roman Semenov:
> Hi,
> 
> I was wondering if there is a way to "activate" nobootloader udeb from 
> preseeded install.
> I m trying to skip bootloader installation during automated install, 
> however cant get rid off grub.


The bootloader selector should allow to select no bootloader.


GSt




Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Fri Apr 18 21:03:39 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.