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 13:31:29 +0300 Message-ID: <87wpomyjum.fsf@gmail.com> References: <86r3eyzfge.fsf@gmail.com> <8760w83jgg.fsf@dustycloud.org> <868u14hhaw.fsf@gmail.com> <8737rc3d36.fsf@dustycloud.org> <864mbrhmb3.fsf@gmail.com> 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]:46153) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1akUSP-0004WY-9o for help-guix@gnu.org; Mon, 28 Mar 2016 06:31:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1akUSK-0007u7-Le for help-guix@gnu.org; Mon, 28 Mar 2016 06:31:37 -0400 Received: from mail-lf0-x22d.google.com ([2a00:1450:4010:c07::22d]:35934) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1akUSK-0007tY-Dr for help-guix@gnu.org; Mon, 28 Mar 2016 06:31:32 -0400 Received: by mail-lf0-x22d.google.com with SMTP id e133so32670238lfe.3 for ; Mon, 28 Mar 2016 03:31:32 -0700 (PDT) In-Reply-To: <864mbrhmb3.fsf@gmail.com> (myglc2@gmail.com's message of "Sun, 27 Mar 2016 13:18:08 -0400") 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: myglc2 Cc: help-guix@gnu.org myglc2 (2016-03-27 20:18 +0300) wrote: > Christopher Allan Webber writes: > >> myglc2 writes: >> >>> Christopher Allan Webber writes: >>> [...] >>>> >>>> Running all machines, I dunno. I do dual-boot Debian and GuixSD with >>>> them sharing the same user profile and store. >>> >>> Dual boot. Now that is cool! >> >> Dual booting allowed me to switch to GuixSD a lot more feasibly than I >> could have otherwise. I installed it on this laptop right before a 3 >> month trip. Dual booting meant that when something wasn't in GuixSD >> yet, no problem, I could switch to Debian for a bit. Then I could work >> on packages at my leisure to switch over. >> >> The trick was realizing that the grub that Guix generates wasn't the one >> I should boot into... I needed to have Guix and Debian generate their >> own grub files on their own partitions, and then have a /boot/ grub >> which was reeeeaally small and simply had menu options to import those >> other grub files. > > Neat!. Normally grub would be installed like this... > > (bootloader (grub-configuration (device "/dev/sda"))) > (file-systems (cons (file-system > (device "/dev/sda1") > (title 'device) > (mount-point "/") > (type "ext4")) > %base-file-systems)) > > But it sounds like you are installing a custom /boot/grub in > /dev/sda. So where is the GuixSD Grub and /? 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 --system= =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 c= an 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 --=20 Alex