From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1Re7aT-00011g-1D for mharc-grub-devel@gnu.org; Fri, 23 Dec 2011 11:03:13 -0500 Received: from eggs.gnu.org ([140.186.70.92]:46589) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Re7aL-00010R-CG for grub-devel@gnu.org; Fri, 23 Dec 2011 11:03:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Re7aH-0006s5-86 for grub-devel@gnu.org; Fri, 23 Dec 2011 11:03:05 -0500 Received: from mail-wi0-f169.google.com ([209.85.212.169]:60824) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Re7aG-0006rf-Vf for grub-devel@gnu.org; Fri, 23 Dec 2011 11:03:01 -0500 Received: by wibhq12 with SMTP id hq12so4326239wib.0 for ; Fri, 23 Dec 2011 08:02:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=0fftEjWQKqJbS+xtB4NYpF5ig6kaU2BXCVDQiOeltXE=; b=QaXlMl+aQSdEqbroVZME2CIeVDAwaOwFe3NS++dFZbiozYJzWzDhm9Db4rd0nRfyTs hh7bFniICmapFWdzCMO2eGktkF7TQj5sNbGRD1tZB9GE0lc+GGws2tkcfyykQNXPCCd7 CHakuYdRB883nXWNzSmAQBaE9Hzve6MJZS3yc= Received: by 10.180.85.4 with SMTP id d4mr33553144wiz.0.1324656179635; Fri, 23 Dec 2011 08:02:59 -0800 (PST) Received: from debian.x201.phnet (1-234.197-178.cust.bluewin.ch. [178.197.234.1]) by mx.google.com with ESMTPS id 1sm32771356wiz.11.2011.12.23.08.02.57 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 23 Dec 2011 08:02:58 -0800 (PST) Message-ID: <4EF4A62D.90608@gmail.com> Date: Fri, 23 Dec 2011 17:02:53 +0100 From: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.24) Gecko/20111114 Icedove/3.1.16 MIME-Version: 1.0 To: The development of GNU GRUB Subject: Re: grub2 uefi x86_64 standalone image feature request References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.212.169 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: Fri, 23 Dec 2011 16:03:11 -0000 On 23.12.2011 16:48, Keshav P R wrote: > Hi, > Is there any way to obtain the path info from which a standalone > grub.efi was launched. In case of grub-mkimage uisng --prefix="" > results in prefix being set to the dir from which the efi app was > launched, but in the standalone grub.efi the prefix is > (memdisk)/boot/grub . In (memdisk)/boot/grub/grub.cfg I added a search > and configfile option that points to the external grub.cfg (in > /efi/grub/grub.cfg), but I don't want to hardcode the > grub.cfg file path in the configfile command in the memdisk grub.cfg. > > Is it possible to introduce a env var within grub2 (independent of > prefix) which gives the path (grub style) from which the grub.efi file > was launched by the firmware, so that I can do "configfile > (path_from_which_grub.efi_loaded)/grub.cfg" in > (memdisk)/boot/grub/grub.cfg in the standalone file. I want the > standalone file to be be portable, no hardcoding of path of external > grub.cfg file (which is editable by the user). Thanks in advance. > Patches are welcome. > Regards. > > Keshav > > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > https://lists.gnu.org/mailman/listinfo/grub-devel -- Regards Vladimir 'φ-coder/phcoder' Serbinenko