From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thorsten Wilms Subject: Dual-booting solution with only one actual Grub installation Date: Mon, 12 Mar 2018 19:43:39 +0100 Message-ID: <2fa37bd4-17ff-286b-80ce-948e0b87ee62@freenet.de> Reply-To: t_w_@freenet.de Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48048) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1evSSn-0004OY-Gm for help-guix@gnu.org; Mon, 12 Mar 2018 14:46:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1evSSk-0002c9-DF for help-guix@gnu.org; Mon, 12 Mar 2018 14:46:25 -0400 Received: from mout1.freenet.de ([2001:748:100:40::2:3]:42488) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1evSSk-0002aX-5r for help-guix@gnu.org; Mon, 12 Mar 2018 14:46:22 -0400 Received: from [195.4.92.140] (helo=mjail0.freenet.de) by mout1.freenet.de with esmtpa (ID t_w_@freenet.de) (port 25) (Exim 4.90_1 #2) id 1evSSi-0005mn-9N for help-guix@gnu.org; Mon, 12 Mar 2018 19:46:20 +0100 Received: from [::1] (port=49326 helo=mjail0.freenet.de) by mjail0.freenet.de with esmtpa (ID t_w_@freenet.de) (Exim 4.90_1 #2) id 1evSSi-00041K-5J for help-guix@gnu.org; Mon, 12 Mar 2018 19:46:20 +0100 Received: from mx7.freenet.de ([195.4.92.17]:60348) by mjail0.freenet.de with esmtpa (ID t_w_@freenet.de) (Exim 4.90_1 #2) id 1evSQ7-0001IY-VT for help-guix@gnu.org; Mon, 12 Mar 2018 19:43:39 +0100 Received: from p200300e4f3c8520002e029fffe32e625.dip0.t-ipconnect.de ([2003:e4:f3c8:5200:2e0:29ff:fe32:e625]:54432) by mx7.freenet.de with esmtpsa (ID t_w_@freenet.de) (TLSv1.2:ECDHE-RSA-CHACHA20-POLY1305:256) (port 465) (Exim 4.90_1 #2) id 1evSQ7-0001LM-Pp for help-guix@gnu.org; Mon, 12 Mar 2018 19:43:39 +0100 Content-Language: en-GB 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 Hi once again, There's a convenient dual-booting solution that I think hasn't been mentioned in these circles. You can let Grub2 offer an item that will load another grub.cfg. In my case, that's a Grub installed from Ubuntu, with a menu that will be updated in sync with kernel installation/removal, plus one "Guix SD" item that will lead to the known Guix SD menu, also always up-to-date, without an actual second Grub installation. No manual updating, no chain-loading of one or the other from an independent third Grub. Guix SD: /etc/config.scm, in operating-system: ---- (bootloader (bootloader-configuration (bootloader (bootloader (inherit grub-bootloader) (installer #~(const #t)))))) ---- Thanks to snape in #guix. With this, /boot/grub/grub.cfg will be generated, but Grub won't actually be installed. Other system with Grub in MBR, addition to: /etc/grub.d/40_custom: ---- menuentry 'GuixSD' { search --fs-uuid --set=root a3a97a6f-a4c9-4569-98a3-4306f4db9ff8 configfile /boot/grub/grub.cfg } ---- Don't forget `sudo update-grub`. -- Thorsten Wilms thorwil's design for free software: http://thorwil.wordpress.com/