From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1QZVLc-0006U6-9v for mharc-grub-devel@gnu.org; Wed, 22 Jun 2011 17:52:32 -0400 Received: from eggs.gnu.org ([140.186.70.92]:38438) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QZVLZ-0006T5-AB for grub-devel@gnu.org; Wed, 22 Jun 2011 17:52:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QZVLX-0006Iz-Hm for grub-devel@gnu.org; Wed, 22 Jun 2011 17:52:29 -0400 Received: from mail-ww0-f49.google.com ([74.125.82.49]:49446) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QZVLX-0006Ir-7L for grub-devel@gnu.org; Wed, 22 Jun 2011 17:52:27 -0400 Received: by wwf22 with SMTP id 22so1067679wwf.30 for ; Wed, 22 Jun 2011 14:52:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:x-enigmail-version:content-type; bh=zz0Qbqkbfx1P0lXz6Jew0TIHymwpqgs6jTQpw+j/Xws=; b=rEAMuY6KoeHpcdLXplgfJNO5cDxaSjgH/sSAU/At2F2jT2FvyV9gXa8Hnj1mmdHzw0 zs8tQFmEuztL5rRyVrkj3PC+SJfZLDhnVVqMnUZjj9CQFIX/g6N8HBua39YV+Hbnsq5k TrlmkScnh9+//35bNcZqLGqcTx3w4zCm5Q+ps= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:x-enigmail-version:content-type; b=ZymSRFMiiUNpeToeIo86ngvUhRdtvZpLUEZ0qy+X7uMGKt5kgJwkniR8XhmjayBP5D rI5ijUqh88j4qaGjpsFjL/wcJC2DloWO2gyMmuOy5Taq0GqyEuV+P2mZjdN93RggXGvZ IafxD1rH8WDgjIRxkUJqi9kuRVG+cOYhMgOBw= Received: by 10.227.195.13 with SMTP id ea13mr1263561wbb.0.1308779545624; Wed, 22 Jun 2011 14:52:25 -0700 (PDT) Received: from debian.x201.phnet (5.90.202.62.cust.bluewin.ch [62.202.90.5]) by mx.google.com with ESMTPS id fr17sm760947wbb.40.2011.06.22.14.52.20 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 22 Jun 2011 14:52:23 -0700 (PDT) Message-ID: <4E02640B.3070204@gmail.com> Date: Wed, 22 Jun 2011 23:52:11 +0200 From: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110606 Iceowl/1.0b2 Icedove/3.1.10 MIME-Version: 1.0 To: The development of GNU GRUB Subject: Re: Mounting a virtual hard-disk and booting from it References: <4E022DBD.8090004@rosenau-ka.de> In-Reply-To: X-Enigmail-Version: 1.1.2 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="------------enigBB90FE827368F86F3950E314" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 74.125.82.49 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Jun 2011 21:52:30 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigBB90FE827368F86F3950E314 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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 > 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 >> > 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 >> https://lists.gnu.org/mailman/listinfo/grub-devel > > > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > https://lists.gnu.org/mailman/listinfo/grub-devel --=20 Regards Vladimir '=CF=86-coder/phcoder' Serbinenko --------------enigBB90FE827368F86F3950E314 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iF4EAREKAAYFAk4CZBMACgkQNak7dOguQgncIAEAxCB90oHkQL9D6YSYeXwldyDa ZIiMmDmAV/qSdxVoxekA/3egB/NX1zm3ryZhkRZQt6zTJusCx7Ov7Pna8zWqCNd2 =2Rjy -----END PGP SIGNATURE----- --------------enigBB90FE827368F86F3950E314--