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: Saqlain Abbas
Subject: Re: calling bash script from grub menu.lst
Date: Fri, 14 Dec 2012 10:13:29 +0500

Thanks Oliver! I am clear now your suggestions seem to be interesting i will give them a try.

-- 
Kind Regards,
Saqlain Abbas.

On Thu, Dec 13, 2012 at 11:28 PM, Oliver Rath <address@hidden> wrote:
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


_______________________________________________
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]