From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jan Nieuwenhuizen Subject: Re: guix system init co-existing with other distros Date: Sun, 21 Feb 2016 23:54:22 +0100 Message-ID: <87oab93c9t.fsf@drakenvlieg.flower> References: <87r3gg8o1u.fsf@gnu.org> <87oab9sofa.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42909) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aXctq-0003A2-Gl for guix-devel@gnu.org; Sun, 21 Feb 2016 17:54:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aXctn-0001ul-Ah for guix-devel@gnu.org; Sun, 21 Feb 2016 17:54:46 -0500 In-Reply-To: <87oab9sofa.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Sun, 21 Feb 2016 23:12:41 +0100") 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-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: guix-devel@gnu.org Ludovic Court=C3=A8s writes: > Jan Nieuwenhuizen skribis: >> (grub-configuration >> (device "/dev/sda") >> (list (menu-entry >> (label "debian") >> (linux "(hd0,msdos3)/boot/latest") > Did you run =E2=80=9Cguix system init config.scm /=E2=80=9D? Fear not. Debian lives on /dev/sda3, guix on /sda1. From Debian I dit guix system init config.scm /guix > Good question! I=E2=80=99m not sure I fully understand your hack but I= =E2=80=99d like > to read more about it. :-) So what I need is for Guix's Grub to create an extra menu entry for Debian, with this text menuentry 'Debian GNU/Linux' { linux /boot/vmlinuz-3.16.0-4-amd64 root=3D/dev/sda3 ro initrd /boot/initrd.img-3.16.0-4-amd64 } When you specify extra an extra menu-entry (list (menu-entry (label "debian") (linux "") (initrd ")) then grub.scm:(grub-configuration-file) appends "/" "bzImage" to the kernel's file-name (define linux-image-name (if (string-prefix? "mips" system) "vmlinuz" "bzImage")) So, I setup some symlinks on the Debian side so that I can provide Guix's Grub wih a kernel file name that can have "/bzImage" appended. 23:42:13 janneke@drakenvlieg:~/src/guix $ ls -l /debian/boot/latest/ totaal 0 lrwxrwxrwx 1 root root 28 6 feb 21:17 bzImage -> /boot/vmlinuz-3.16.0-= 4-amd64 lrwxrwxrwx 1 root root 31 6 feb 21:17 initrd -> /boot/initrd.img-3.16.= 0-4-amd64 Possibly we'd want to add another keyword (linux-image "(hd0,msdos3)/boot/vmlinuz-3.16.0-4-amd64") that gets used literally? Greetings, Jan --=20 Jan Nieuwenhuizen | GNU LilyPond http://lilypond.org Freelance IT http://JoyofSource.com | Avatar=C2=AE http://AvatarAcademy.nl= =20=20