Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

A simpler and yet more flexible bootloader.

User discussion about Debian Development, Debian Project News and Announcements. Not for support questions.
Post Reply
Message
Author
User avatar
edbarx
Posts: 5401
Joined: 2007-07-18 06:19
Location: 35° 50 N, 14 º 35 E
Been thanked: 2 times

A simpler and yet more flexible bootloader.

#1 Post by edbarx »

It is an idea that can make the GRUB bootloader simpler to configure when it is used to chainload other GRUB bootloaders.

The idea is extremely simple:
After loading and displaying menu.lst, the bootloader can be instructed to load other menu files. This can be done by adding another command. The necessary code is almost already written.

The advantage of this method is that one can use only one partition for GRUB. The currently implemented GRUB, may require more than one partition for chainloading.
Debian == { > 30, 000 packages }; Debian != systemd
The worst infection of all, is a false sense of security!
It is hard to get away from CLI tools.

gnudude
Posts: 1684
Joined: 2009-04-05 17:30
Location: gone....

Re: A simpler and yet more flexible bootloader.

#2 Post by gnudude »

You lost me.....

User avatar
edbarx
Posts: 5401
Joined: 2007-07-18 06:19
Location: 35° 50 N, 14 º 35 E
Been thanked: 2 times

Re: A simpler and yet more flexible bootloader.

#3 Post by edbarx »

If GRUB is made capable of loading any menu file, there will be the advantage of having chainloading without the need of separate partitions.

GRUB would load menu.lst which would invoke menu1.lst, menu2.lst, etc. menu.lst would contain the commands to load menu1.lst, menu2.lst, etc on menu selection.
Debian == { > 30, 000 packages }; Debian != systemd
The worst infection of all, is a false sense of security!
It is hard to get away from CLI tools.

User avatar
BioTube
Posts: 7520
Joined: 2007-06-01 04:34

Re: A simpler and yet more flexible bootloader.

#4 Post by BioTube »

I've seen this done before with GRUB.
Image
Ludwig von Mises wrote:The elite should be supreme by virtue of persuasion, not by the assistance of firing squads.

User avatar
bernie_d
Posts: 487
Joined: 2005-12-28 13:00
Location: Edinburgh, UK

Re: A simpler and yet more flexible bootloader.

#5 Post by bernie_d »

This is already part of grub. The command is configfile.
The fine manual wrote:13.3.6 configfile
— Command: configfile file

Load file as a configuration file.

User avatar
bernie_d
Posts: 487
Joined: 2005-12-28 13:00
Location: Edinburgh, UK

Re: A simpler and yet more flexible bootloader.

#6 Post by bernie_d »

Note that configfile doesn't chainload, it just uses a different menu (which can be named whatever you like).

You can also chainload a different instance of grub from grub, if you've installed the grub mbr on more than one partition.

User avatar
jtodd
Posts: 457
Joined: 2008-06-04 01:24
Location: Michigan

Re: A simpler and yet more flexible bootloader.

#7 Post by jtodd »

edbarx wrote: After loading and displaying menu.lst, the bootloader can be instructed to load other menu files.
SuperGrubDisk does that.
Debian GNU/Linux Sid | Intel Celeron 2.2GHz | 224mb RAM | 27GB HD | 320GB Ext. HD | dwm

Post Reply