On 22.06.2011 22:37, Swapnesh Chaubal wrote:
> Thanks for the reply Martin, is there any other way to achieve this? I
> do not need to python script for it, I need to run an executable which
> reads the virtual hard-disk. So I think I'll need to run this
> executable and add an entry in grub.conf before the boot menu shows up.
>
Have a look at ubuntu/casper and
http://www.supergrubdisk.org/wiki/Loopback.cfg to see how it's done
properly. It short: you completely miss the point and "running a
program/python script in GRUB" makes little sense. To load linux/initrd
from image from GRUB it's enough 4 simple commands: loopback, linux,
initrd, boot. But you need special initrd to do the rest
>
>
> On Wed, Jun 22, 2011 at 2:00 PM, Martin Rosenau <mar...@rosenau-ka.de
> <mailto:mar...@rosenau-ka.de>> wrote:
>
>     Hello
>
>     I do not think you can run Python scripts from GRUB. A Python
>     interpreter is a very large program requiring a complete operating
>     system. It would be very complex to run such scripts from GRUB...
>
>     Martin
>
>>     On Tue, Jun 21, 2011 at 3:02 PM, Swapnesh Chaubal
>>     <scha...@clemson.edu <mailto:scha...@clemson.edu>> wrote:
>>
>>         Hey folks,
>>
>>         I use a script from VMWare to read a virtual hard-disk and
>>         then mount it to a drive in Linux. How can I boot from this
>>         mounted drive using grub (I need to mount the drive before
>>         booting to any OS). I could have all the mounting stuff
>>         written in a python/bash script. However, is there a way to
>>         run that script from GRUB or a GRUB module?
>>
>>         Thanks,
>>         Swapnesh
>>
>>
>>
>>     _______________________________________________
>>     Grub-devel mailing list
>>     Grub-devel@gnu.org <mailto:Grub-devel@gnu.org>
>>     https://lists.gnu.org/mailman/listinfo/grub-devel
>
>
>
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> https://lists.gnu.org/mailman/listinfo/grub-devel


-- 
Regards
Vladimir 'φ-coder/phcoder' Serbinenko


Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel

Reply via email to