From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Kost Subject: Re: Guix/GNU/Linux multi distro + GuixSD multi-site scenario Date: Mon, 28 Mar 2016 22:56:04 +0300 Message-ID: <87twjq8jhn.fsf@gmail.com> References: <86r3eyzfge.fsf@gmail.com> <8760w83jgg.fsf@dustycloud.org> <868u14hhaw.fsf@gmail.com> <8737rc3d36.fsf@dustycloud.org> <864mbrhmb3.fsf@gmail.com> <87wpomyjum.fsf@gmail.com> <87vb4636bx.fsf@dustycloud.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]:37506) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1akdGl-00077e-0h for help-guix@gnu.org; Mon, 28 Mar 2016 15:56:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1akdGh-0000mr-0K for help-guix@gnu.org; Mon, 28 Mar 2016 15:56:10 -0400 Received: from mail-lb0-x235.google.com ([2a00:1450:4010:c04::235]:36072) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1akdGg-0000mk-OQ for help-guix@gnu.org; Mon, 28 Mar 2016 15:56:06 -0400 Received: by mail-lb0-x235.google.com with SMTP id qe11so87756094lbc.3 for ; Mon, 28 Mar 2016 12:56:06 -0700 (PDT) In-Reply-To: <87vb4636bx.fsf@dustycloud.org> (Christopher Allan Webber's message of "Mon, 28 Mar 2016 09:39:14 -0700") 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-bounces+gcggh-help-guix=m.gmane.org@gnu.org To: Christopher Allan Webber Cc: myglc2 , help-guix@gnu.org Christopher Allan Webber (2016-03-28 19:39 +0300) wrote: > Alex Kost writes: [...] >> Hi, I also use double boot (GuixSD and ArchLinux). I do it like this: >> at first I never let GuixSD to reinstall grub by using --no-grub option >> ("guix system reconfigure --no-grub ..."). Instead I installed grub >> manually (into a separate "boot" partition) and I use my own "grub.cfg", >> which has an entry for the latest GuixSD system. This entry may look >> like this: >> >> menuentry 'GuixSD' { >> search --no-floppy --label --set guix >> linux /var/guix/profiles/system/kernel/bzImage --root=3Dguix --syst= em=3D/var/guix/profiles/system --load=3D/var/guix/profiles/system/boot >> initrd /var/guix/profiles/system/initrd >> } >> >> My grub config=C2=B9 also has entries for a previous system generation (= I can >> boot any generation by editing a number in a grub boot menu) and for a >> particular system (sometimes I do "guix system build =E2=80=A6" and put = the >> result directory of this "testing" system to my grub.cfg). >> >> =C2=B9 https://github.com/alezost/config/blob/master/etc/grub.cfg > > Hm, I think this approach is not quite as nice, IMO. Yeah, I think it is not suitable for most people, but it is very nice for me :-) > One downside here > is that by not using the grub that guix generates for you, you can't > simply boot into a prior system revision if something goes long, which > is a huge advantage in GuixSD. As I wrote I can boot into any prior system simply by editing a generation number in the grub menu. > Here's what I do on my grub.cfg (or libreboot_grub.cfg technically): > > set timeout=3D5 > insmod ahci > insmod chain > > menuentry "Guix" { > set root=3D(ahci0,msdos7) > configfile /boot/grub/grub.cfg > unset superusers # probably not needed > } > > menuentry "Debian" { > set root=3D(ahci0,msdos6) > configfile /boot/grub/grub.cfg > unset superusers # probably not needed > } Thanks for sharing! I didn't think about using "configfile" before. --=20 Alex