From mboxrd@z Thu Jan 1 00:00:00 1970 From: "H. Peter Anvin" Subject: Re: Making qemu images executable (and store command line arguments in them =P) Date: Wed, 15 Aug 2007 21:22:33 -0700 Message-ID: <46C3D109.3080807@zytor.com> References: <59abf66e0708151552r6192f7e1he7ebe5bffd49525f@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org, qemu-devel-qX2TKyscuCcdnm+yROfE0A@public.gmane.org To: =?ISO-8859-1?Q?Jorge_Luc=E1ngeli_Obes?= Return-path: In-Reply-To: <59abf66e0708151552r6192f7e1he7ebe5bffd49525f-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: kvm.vger.kernel.org Jorge Luc=E1ngeli Obes wrote: > = > The '#!' trick works nice with scripts, but I don't see it playing > very well with images. =BFComments? =BFPointers? > = Well, you can make it work with a header (you just have to pad it out to a fixed length or use a variable-offset format), but binfmt_misc might be a better choice. -hpa ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ILWtL-0004Et-Gm for qemu-devel@nongnu.org; Thu, 16 Aug 2007 00:23:27 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ILWtK-0004Di-Ql for qemu-devel@nongnu.org; Thu, 16 Aug 2007 00:23:27 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ILWtK-0004DK-JG for qemu-devel@nongnu.org; Thu, 16 Aug 2007 00:23:26 -0400 Received: from terminus.zytor.com ([198.137.202.10]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1ILWtK-00019j-31 for qemu-devel@nongnu.org; Thu, 16 Aug 2007 00:23:26 -0400 Message-ID: <46C3D109.3080807@zytor.com> Date: Wed, 15 Aug 2007 21:22:33 -0700 From: "H. Peter Anvin" MIME-Version: 1.0 References: <59abf66e0708151552r6192f7e1he7ebe5bffd49525f@mail.gmail.com> In-Reply-To: <59abf66e0708151552r6192f7e1he7ebe5bffd49525f@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] Re: [kvm-devel] Making qemu images executable (and store command line arguments in them =P) Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?ISO-8859-1?Q?Jorge_Luc=E1ngeli_Obes?= Cc: kvm-devel@lists.sourceforge.net, qemu-devel@nongnu.org Jorge Luc=E1ngeli Obes wrote: >=20 > The '#!' trick works nice with scripts, but I don't see it playing > very well with images. =BFComments? =BFPointers? >=20 Well, you can make it work with a header (you just have to pad it out to a fixed length or use a variable-offset format), but binfmt_misc might be a better choice. -hpa