Grub 2 Grub Super Disk WishList
A message that is not in the archive (sent off-list or not yet received): jbm.20050817194333.9e00a699@binefar4-3df24f
"adrian15" <[email protected]> writes:
Hi adrian15,
(posting on grub-devel instead of bug-grub. You can post on grub-devel as well if you subscribe to that list)
This is what I think of your proposals. I hope the other GRUB2 developers would give their opinions as well.
Quoted 7 lines
PROPOSAL 1) - Device autodetection
============
Grub 2 should be able to autodetect where the main/first menu.lst is.
Grub 2 should be able to store automagically this device into a constant calledGRUB_DEVICE
Is this the same as the prefix variable GRUB 2 uses?
Quoted 12 lines
Grub Menu Advantadge
====================
This option is useful for not having to rewrite menu.lst files that invoke another config files with the configfile command.If you develop a floppy disk with menus that invoke other menus like Grub Super Disk you will use commands like this:
title spanish
configfile (fd0)/grub/es/menu.lst
Quoted 8 lines
If you want to make the same thing into a cdrom or into a network device you should replace (fd0) and put (cd) or (nd) respectively.
Why can't we have something like:
title spanish
configfile GRUB_DEVICE/grub/es/menu.lst
You could use:
configfile ${prefix}/grub/es/menu.lst
Quoted 8 lines
the following command:
title Back to main menu
configfile ../menu.lstshould load: GRUB_DEVICE/grub/es/menu.lst
This should help making complex menus with Grub.
Isn't this possible already? I think something like this is possible already:
configfile ${prefix}/..
Quoted 9 lines
PROPOSAL 3)
GRUB_TITLE
========================
There is a variable which stores a main title which is displayed in the place where in GRUB 1.X is shown the grub version and the free mem.Every menu in Grub 1.x is the Grub menu. This way each menu can have a name of its own.
That would be possible, I wonder what the other developers think of that.
Quoted 11 lines
PROPOSAL 4) OLD MENU.LST VARIABLE
=================================
Once we load a configfile if we had already loaded another configfile the path/filename of this configfile into a variable called:OLD_CONFIGFILE.This will help to make Previous Menu option easier. Although I think that some sort of global variables among the different configfiles should be used.
Quoted 7 lines
If one menu calls a second one and this second one calls a third one then
OLD_CONFIGFILEof the first one and of the second one are lost.Having each previously loaded configfile each own
OLD_CONFIGFILEshould eat resources and maybe Grub developers don't want this.Any other similar idea?
I think you can implement this yourself like this:
THISFILE=/grub/es/menu.lst
title foo
set LAST=$THISFILE
configfile blah
title bar
set LAST=$THISFILE
configfile blah
Right?
Quoted 6 lines
PROPOSAL 5) 2-line menu options
================================
Grub should be ready to show title string that exceed screen width in characters if we set it to this behaviour.This behaviour should be set with a variable like LINE2YES.
Why would this be useful? It might be hard to implement and make the code obscure.
Quoted 6 lines
PROPOSAL 6) echo command
============================
The cat command is very useful to show files but sometimes we need to show text and it doesn't need to be asociated to an option.So an echo command is needed (the same basic behaviour as linux one)
I agree that an echo command might be usable, especially when scripting is implemented.
Quoted 5 lines
PROPOSAL 7) cat more
==========================
The cat command shows files. But with Grub 1.x if you run it within a menu it doesn't stop at a full screen, even if the PAGER is ON.
I think cat should be stoppeable.
set pager=1
Doesn't that work?
Please tell me if I misunderstood one of your proposals.
--
Marco
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Quoted 7 lines · Marco Gerards
Quoted 4 lines
title Back to main menu
configfile ../menu.lst
should load: GRUB_DEVICE/grub/es/menu.lst
This should help making complex menus with Grub.Isn't this possible already? I think something like this is possible already:
configfile ${prefix}/..
In file ${prefix}/grub/es/menu.lst
${prefix}/../menu
wouldn't load
${prefix}/grub/menu.lst
as I think he is expecting. I think it's a good idea.
Quoted 5 lines
Quoted 3 lines
There is a variable which stores a main title which is displayed in the place where in GRUB 1.X is shown the grub version and the free mem.
That would be possible, I wonder what the other developers think of that.
Good idea to me too.
Quoted 4 lines
Quoted 3 lines
Once we load a configfile if we had already loaded another configfile the path/filename of this configfile into a variable called:
OLD_CONFIGFILE.I think you can implement this yourself like this:
I think it already works, as grub2 uses "russian dolls" terminals, if one exits it returns control to his parent - and refuses to if it has none.
Quoted 2 lines
Quoted 2 lines
Grub should be ready to show title string that exceed screen width in characters if we set it to this behaviour.
I think such "cosmetics" should be left for more advanced interfaces, like the vesa modes or so.
Vincent Pelletier
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
iD8DBQFDA6V9FEQoKRQyjtURArmNAJwL2nU9IBTyzohK7vlXHQn+27t1+QCfegnD QgsZDAwU8YPDFTtTLUiOpNc=
=IXZw
-----END PGP SIGNATURE-----
___________________________________________________________________________
Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger Téléchargez cette version sur http://fr.messenger.yahoo.com
Quoted 10 lines · Marco Gerards
Quoted 9 lines
PROPOSAL 1) - Device autodetection
============
Grub 2 should be able to autodetect where the main/first menu.lst is.
Grub 2 should be able to store automagically this device into a constant calledGRUB_DEVICE
Quoted 3 lines
Is this the same as the prefix variable GRUB 2 uses?
I'm not sure that it's the same idea I had for the some time but I thought that GRUB goes to grub rescue if partition map changed. So my idea was to write partition module that will autodetect the GRUB partition (another question is what parameter to use for autodection. But it must be secure: GRUB will not detect other partition containing modules at the other case the attacker could boot his own modules) and register it like (boot) then GRUB can load the real partition map module
Quoted 9 lines
I think you can implement this yourself like this:
THISFILE=/grub/es/menu.lst
title foo
set LAST=$THISFILE
configfile blah
Quoted 9 lines
title bar
set LAST=$THISFILE
configfile blahRight?
T he disadvantage is that it doesn't work with "deep" menus (if new menu loads another one)
Quoted 5 lines
Quoted 5 lines
PROPOSAL 5) 2-line menu options
================================
Grub should be ready to show title string that exceed screen width in characters if we set it to this behaviour.
Quoted 9 lines
Quoted 3 lines
This behaviour should be set with a variable like LINE2YES.
Why would this be useful? It might be hard to implement and make the code obscure.
And why would someone use such a long title?
Vladimir