|
From: | Saqlain Abbas |
Subject: | Re: calling bash script from grub menu.lst |
Date: | Fri, 14 Dec 2012 10:13:29 +0500 |
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.lstsubmenu1.lstscrip 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.lstfrom 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
[Prev in Thread] | Current Thread | [Next in Thread] |