help-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: calling bash script from grub menu.lst


From: Oliver Rath
Subject: Re: calling bash script from grub menu.lst
Date: Thu, 13 Dec 2012 19:28:02 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0

Hi Saqlain,

imho you cant use bash at grub-time, because for this you need the bash-interpreter and this one needs a running linux-system.

For your needs i think it is better using the grub menus und submenus (i.e. https://help.ubuntu.com/community/Grub2/Submenus).

If you want to do little jobs starting from grub you can create a tiny linux distro (like dsl - damn small linux), just for starting your bash-script or - much more little - create your own initramfs with the things to do.

Hth,
Oliver


On 13.12.2012 19:03, Saqlain Abbas wrote:
Hello,

Is it possible to call bash scrip from grub menu.lst? My use case is explained below, i got hierarchy like below kindly have a look...

mainmenu.lst
                      submenu1.lst
scrip executed and base on user input  it may result in some files changes in /etc or may create some new files etc

from submenu1.lst we can go back to mainmenu.lst

from mainmenu.lst I will boot the system. 

And one more thing for such menu system in grub? Should i choose grub or grub2? 
--
Kind Regards,
Saqlain Abbas.



_______________________________________________
Help-grub mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/help-grub


reply via email to

[Prev in Thread] Current Thread [Next in Thread]