From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christopher Baines Subject: Re: Hosting a GuixSD server on commodity hosting platforms, a journey Date: Fri, 2 Dec 2016 19:51:11 +0000 Message-ID: <3c51a2c0-a3a0-da12-22a7-e2b2739520ca@cbaines.net> References: <878ts212ic.fsf@dustycloud.org> <871sxt1sho.fsf@dustycloud.org> <87shq76kkl.fsf@dustycloud.org> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60757) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cCtra-0007EL-81 for help-guix@gnu.org; Fri, 02 Dec 2016 14:51:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cCtrX-00076T-Mq for help-guix@gnu.org; Fri, 02 Dec 2016 14:51:18 -0500 Received: from li622-129.members.linode.com ([212.71.249.129]:52252 helo=mira.cbaines.net) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cCtrX-000764-Gs for help-guix@gnu.org; Fri, 02 Dec 2016 14:51:15 -0500 Received: from [192.168.1.201] (host-92-2-38-112.as43234.net [92.2.38.112]) by mira.cbaines.net (Postfix) with ESMTPSA id 8C9DB13E05B for ; Fri, 2 Dec 2016 19:51:11 +0000 (GMT) In-Reply-To: <87shq76kkl.fsf@dustycloud.org> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: help-guix@gnu.org On 02/12/16 04:06, Christopher Allan Webber wrote: > Except, oops! This won't boot. We need to put GRUB on it. > > Well here's where I'm stuck for tonight. I don't know exactly what's > needed; maybe either the -b flag, or --grub2-mbr, or some combination. > The man page is a little bit overwhelming (I mean, xorrisofs is clearly > featureful, credit there): > > https://www.gnu.org/software/xorriso/man_1_xorrisofs.html > > But how do I generate the right GRUB stuff to put there? Can I pull it > off the USB image? Generate it separately? > > This web page is very long but appears to have the appropriate info (and > unfortunately requires running arbitrary javascript to even render): > > http://lukeluo.blogspot.com/2013/06/grub-how-to-2-make-boot-able-iso-with.html > > ... so I guess the next steps are following roughly what's described at > the bottom of the page? > > I wonder how other distros do this step. Thanks for looking in to this Chris! I'm using Bytemark for personal servers, and have tried and failed to install Guix from a Debian live cd. But, they do support installing from arbitrary ISO images, this would be great to get working. The bash script which I guess Nix uses looks quite short [1], you might find some useful inspiration there. 1: https://github.com/NixOS/nixpkgs/blob/master/nixos/lib/make-iso9660-image.sh