All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Vladimir 'φ-coder/phcoder' Serbinenko" <phcoder@gmail.com>
To: The development of GNU GRUB <grub-devel@gnu.org>
Subject: Re: Mounting a virtual hard-disk and booting from it
Date: Wed, 22 Jun 2011 23:52:11 +0200	[thread overview]
Message-ID: <4E02640B.3070204@gmail.com> (raw)
In-Reply-To: <BANLkTimev8r4z+ChyVi78kJDfvnaC8fb7Q@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 2129 bytes --]

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 <martin@rosenau-ka.de
> <mailto:martin@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
>>     <schauba@clemson.edu <mailto:schauba@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 #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 294 bytes --]

  reply	other threads:[~2011-06-22 21:52 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-21 19:02 Mounting a virtual hard-disk and booting from it Swapnesh Chaubal
2011-06-22 13:55 ` Swapnesh Chaubal
2011-06-22 18:00   ` Martin Rosenau
2011-06-22 20:37     ` Swapnesh Chaubal
2011-06-22 21:52       ` Vladimir 'φ-coder/phcoder' Serbinenko [this message]
2011-06-24 15:46 ` Lennart Sorensen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4E02640B.3070204@gmail.com \
    --to=phcoder@gmail.com \
    --cc=grub-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.