From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mathieu Othacehe Subject: bug#40839: Shepherd activation .GO files are not cross-compiled ... and the Hurd Date: Mon, 27 Apr 2020 14:35:05 +0200 Message-ID: <87h7x5w1hi.fsf@gmail.com> References: <87imhnuc8a.fsf@gnu.org> <87sggru4oh.fsf@gmail.com> <871robtpjd.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:38078) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jT2zT-0003cL-4j for bug-guix@gnu.org; Mon, 27 Apr 2020 08:36:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jT2zS-0003AD-It for bug-guix@gnu.org; Mon, 27 Apr 2020 08:36:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:52545) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jT2zS-0003A5-6x for bug-guix@gnu.org; Mon, 27 Apr 2020 08:36:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jT2zR-0002PW-W0 for bug-guix@gnu.org; Mon, 27 Apr 2020 08:36:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <871robtpjd.fsf@gnu.org> (Jan Nieuwenhuizen's message of "Sat, 25 Apr 2020 19:59:18 +0200") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane-mx.org@gnu.org Sender: "bug-Guix" To: Jan Nieuwenhuizen Cc: 40839@debbugs.gnu.org Hello Janneke! I had a look to (gnu system hurd), this is really nice! I think we could try an explosive mixture of our two branches :) More seriously, we could do something like: --8<---------------cut here---------------start------------->8--- (define hurd-disk-image (image (format 'disk-image) (partitions (list (partition (size 'guess) (label "Guix_image") (file-system "ext2") (flags '(boot)) (initializer (gexp initialize-hurd-root-partition))))))) --8<---------------cut here---------------end--------------->8--- then we could have some mapping in guix/scripts/system.scm to associate: * x86_64-linux -> efi-disk-image * i586-pc-gnu -> hurd-disk-image and one could get a hurd disk-image by typing: --8<---------------cut here---------------start------------->8--- guix system disk-image --target=i586-pc-gnu my-hurd-os.scm --8<---------------cut here---------------end--------------->8--- One problem that can arise is the installation of grub. Currently wip-disk-image does not support legacy Grub (MBR based) installation. This is because running grub-install needs root permissions, to mess with /dev/something in order to write the MBR I guess. We could also create a Hurd ISO if grub-mkrescue (that is used to make the ISO bootable), supports the Hurd. Adding Ludo that might have some insight here. Thanks, Mathieu