Skip to content
This repository has been archived by the owner on Oct 28, 2023. It is now read-only.

How do I add my own menu on boot? #296

Open
dialmak opened this issue Dec 10, 2020 · 12 comments
Open

How do I add my own menu on boot? #296

dialmak opened this issue Dec 10, 2020 · 12 comments

Comments

@dialmak
Copy link
Contributor

dialmak commented Dec 10, 2020

How do I add my own menu on boot? What variables can I use?
Do I need to recompile for this or can external files be used?
Thanks.

@steve6375
Copy link

Add /boot/grubfm/config file. It will be run on startup.
You can then run a configfile command or anything else.

@dialmak
Copy link
Contributor Author

dialmak commented Dec 10, 2020

/boot/grubfm/config ? or /boot/grubfm/config.cfg ?
For EFI it works?

@thamermousa
Copy link

I also want the list to be in Arabic
I don't know how to add or modify
These ISO files I downloaded from here , As in the picture

2020-12-10_200543

In the ISO I did not find this
/boot/grubfm/config.cfg

I only know the modification of the ISO file by adding or deleting files

I want it in Arabic to boot in grubfm_multiarch.iso and grubfm.iso

boot Group4DOS in menu.lst


title grubfm_multiarch.iso to Boot USB HDD SSD M.2 BIN VHD IMG WIM ISO all \n\n grubfm_multiarch.iso v7.3.3 to Boot USB HDD SSD M.2 BIN VHD IMG WIM ISO all ( 23.1 MB ) \n\n\t\t\t https://github.com/a1ive/grub2-filemanager/releases [email protected]
ls /W81X/grubfm_multiarch.iso || find --set-root /W81X/grubfm_multiarch.iso
map --heads=0 --sectors-per-track=0 /W81X/grubfm_multiarch.iso (0xff) || map --heads=0 --sectors-per-track=0 --mem /W81X/grubfm_multiarch.iso (0xff)
map --hook
chainloader (0xff)

Please Help and Thank you

@steve6375
Copy link

If the ISO is on F:, then create a /boot/grubfm/config file on F:

export lang=ar_SA

Attached is sample menu file, but it assumes this config file is used
config.zip
SAMPLE_startup_menu.txt

Taken from agFM as used in Easy2Boot project www.easy2boot.com
https://www.easy2boot.com/uefi-mbr-a1ive-grub2-file-manager/

@dialmak
Copy link
Contributor Author

dialmak commented Dec 10, 2020

steve6375 thanks.
What variables can you use? How to make a separate item in your menu to enter the main menu?
https://i.imgur.com/ppJdf2E.png

@steve6375
Copy link

I set some variables in config.
For others, simply type
set pager=1
set

To see variables
Main grubfm explorer is simply run using grubfm command, as in the sample menu

@thamermousa
Copy link

It didn't work for me

I do not understand this :
export lang=ar_SA

بدون عنو12ان

I want the files ready if possible in a folder W81X

@steve6375
Copy link

steve6375 commented Dec 10, 2020

If you look at the config file, you will see that it looks for a file named startup_menu.txt. So you must rename the file i sent you.
If you look at the .txt file, you will see there is an example of how to set the language and many other things.
The config file and the startup_menu.txt file must be in the /boot/grubfm folder.

@thamermousa
Copy link

بدون عنوان

Correct your words ... I changed the file name

And then I added this line
lang=ar_SA
On config

Thank you very much

@dialmak
Copy link
Contributor Author

dialmak commented Dec 11, 2020

steve6375 thanks.
Everything works great.
https://i.imgur.com/a2msZh5.png
There is one last question left. Can I return to this menu from the main menu?

thamermousa
Create a file \boot\grubfm\config and write in it export lang=ar_SA
https://i.imgur.com/WZcDftD.png

@thamermousa
Copy link

steve6375
thank you

dialmak
thank you

2020-12-11_042804

2020-12-11_043014

@steve6375
Copy link

Q. There is one last question left. Can I return to this menu from the main menu?
A. You can only load the startup_menu.txt file using the grubfm menu system. You could create a .cfg file in the root of the drive which loads the config file or the startup_menu.txt file.
The easiest thing to do would be a warm reboot (F6).
The Easy2Boot version (agFM) has an F10 key in the File Manager which reloads grub2.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants