From mboxrd@z Thu Jan 1 00:00:00 1970 From: Danny Milosavljevic Subject: How does install-grub work? Date: Mon, 29 Aug 2016 20:57:34 +0200 Message-ID: <20160829205734.0b49dc92@scratchpost.org> References: <20160822132018.19828-1-david@craven.ch> <20160822132018.19828-6-david@craven.ch> <20160827104228.5db67f6a@scratchpost.org> <20160829123149.0e260af6@scratchpost.org> <20160829161919.5277eb35@scratchpost.org> <20160829201656.4390d2db@scratchpost.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38168) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1beRkg-0001uY-SX for guix-devel@gnu.org; Mon, 29 Aug 2016 14:57:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1beRkd-0003ly-Nz for guix-devel@gnu.org; Mon, 29 Aug 2016 14:57:46 -0400 Received: from dd1012.kasserver.com ([85.13.128.8]:40445) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1beRkd-0003lf-Gt for guix-devel@gnu.org; Mon, 29 Aug 2016 14:57:43 -0400 In-Reply-To: List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: David Craven Cc: guix-devel On Mon, 29 Aug 2016 20:20:30 +0200 David Craven wrote: > > Note: It should infer the correct u-boot to use on its own - at least that's the intention with the whole make-u-boot-package thing. > > Did you see the updated u-boot patch? It includes support for > cross-compilation, Nice! > so make-u-boot-package takes a xgcc package and a > target triplet as arguments. So it probably broke the inference. No, I think I didn't make it work yet. I've modeled along the lines of what was already there for Grub. But I've got no idea where gnu/build/install.scm's install-grub finds "grub-install" - so the u-boot part doesn't work either since I don't know where to put the package reference in the first place (or how in the world it works for Grub to begin with). Also, there's a few mysterious things with install-grub. For example the documentation in the function header there says "Install Grub with GRUB.CFG on DEVICE, which is assumed to be mounted on MOUNT-POINT." I really doubt that it actually does what it says since usually grub is installed on the drive MBR and not inside a partition. And MOUNT-POINT is a mounted filesystem on a partition, right? So the whole drive is certainly not mounted at MOUNT-POINT. MOUNT-POINT originally comes from guix/scripts/system.scm - process-action. And that is called by process-command. And that is called by guix-system which is used when invoking "guix system" "reconfigure". But I've never specified a mountpoint when invoking that...