From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1TrQ3r-0005iV-V9 for mharc-grub-devel@gnu.org; Sat, 05 Jan 2013 04:29:03 -0500 Received: from eggs.gnu.org ([208.118.235.92]:45940) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TrQ3p-0005iJ-I2 for grub-devel@gnu.org; Sat, 05 Jan 2013 04:29:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TrQ3o-00014M-OA for grub-devel@gnu.org; Sat, 05 Jan 2013 04:29:01 -0500 Received: from mail-la0-f43.google.com ([209.85.215.43]:61659) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TrQ3o-000145-G0 for grub-devel@gnu.org; Sat, 05 Jan 2013 04:29:00 -0500 Received: by mail-la0-f43.google.com with SMTP id eg20so11162304lab.16 for ; Sat, 05 Jan 2013 01:28:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:date:from:to:subject:message-id:x-mailer:mime-version :content-type:content-transfer-encoding; bh=2glb8Dv4S6B5RmdIP7W1DMbufFxa5v1HtH/gdjhJfqk=; b=hSVMNzmI94tfdKIOQxPVwgisjkIz+9a8Yy1V4gHy4oKqN8NJ1DW1Jclj5iRniSrWou F/dgzGdlPU3Xh1SI5bsgLDXnEV08Rib3/fxeSc5UAqf2YoNg+ukvaFWMOw7oh1NMnI7N vRHgfDwiR2P+GHOfynv/uUppB2l989nXozQsm0Po33lPfo3akQcnYtWbqRKhyr2Aup+Z /a5SZCsItxDl+Y8BodLugxNdPkO1Ve4JV67QTLxc3Kkhns9Y6m82nkGjTW7L7DIordd9 Jowhzxux0XOopzVGNoYckdoP5NWIRKjcIh0YENylcZ5KVSiAZ6nakFQouzORrIL6Bu/I FYLw== X-Received: by 10.112.25.106 with SMTP id b10mr21724623lbg.68.1357378138905; Sat, 05 Jan 2013 01:28:58 -0800 (PST) Received: from opensuse.site (ppp91-78-198-46.pppoe.mtu-net.ru. [91.78.198.46]) by mx.google.com with ESMTPS id ft8sm20244612lab.9.2013.01.05.01.28.57 (version=SSLv3 cipher=OTHER); Sat, 05 Jan 2013 01:28:58 -0800 (PST) Date: Sat, 5 Jan 2013 13:28:55 +0400 From: Andrey Borzenkov To: grub-devel@gnu.org Subject: Detecting running platform (specifically EFI) during runtime? Message-ID: <20130105132855.3ec74e3a@opensuse.site> X-Mailer: Claws Mail 3.8.1 (GTK+ 2.24.10; x86_64-suse-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 209.85.215.43 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: Sat, 05 Jan 2013 09:29:02 -0000 Is it possible to check at run-time on which platform we are running. Specifically, any way to distinguish between EFI and legacy BIOS? TIA -andrey