From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: none Date: Sat, 06 Dec 2014 15:06:44 +0100 Message-ID: <87k3243ma3.fsf@gnu.org> References: <87a9347gtj.wl%sleep_walker@suse.cz> <87wq67qao8.fsf@gnu.org> <874mta7au9.wl%sleep_walker@suse.cz> 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]:51997) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XxG0b-0003lO-F4 for guix-devel@gnu.org; Sat, 06 Dec 2014 09:06:58 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XxG0W-0006b2-P0 for guix-devel@gnu.org; Sat, 06 Dec 2014 09:06:53 -0500 Received: from hera.aquilenet.fr ([2a01:474::1]:49700) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XxG0W-0006au-IY for guix-devel@gnu.org; Sat, 06 Dec 2014 09:06:48 -0500 In-Reply-To: <874mta7au9.wl%sleep_walker@suse.cz> (Tomas Cech's message of "Fri, 05 Dec 2014 09:35:42 +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: Tomas Cech Cc: guix-devel@gnu.org Tomas Cech skribis: > At Fri, 05 Dec 2014 00:04:23 +0100, [...] >> > 1] if you set device to partition (and not to disk) in your grub-confi= guration like this: >> > >> > (bootloader (grub-configuration >> > (device "/dev/sda4"))) >>=20 >> Why would you want to use a partition and not a disk? I didn=E2=80=99t = know >> this was even possible. > > Because this way I can separate Grub managed by Guix and Grub from my > Gentoo. As I'm playing with that on my notebook I need for work, this > way can reduce risks. > > I'm not sure how Guix installer can manipulate with grub.cfg and I'd > like to always have some working system... Another option for you would be to add a =E2=80=98menu-entry=E2=80=99 to the =E2=80=98grub-configuration=E2=80=99 form that would boot the other distro. (grub-configuration (device ...) (menu-entries (list (menu-entry (label "Good ol' distro") (linux "/path/to/kernel=E2=80=9D) (linux-arguments '("whatever")) (initrd "/path/to/initrd"))))) > After some more mails with help-grub ML It seems that Grub can do even be= tter - > it can load core.img right from Guix's filesystem or just read new > configuration (multiboot, resp. config - both shown here > http://www.gnu.org/software/grub/manual/grub.html#Multi_002dboot-manual-c= onfig > )... But these are just Grub chainloading Grub solutions... > > From Guix perspective I don't think it is possible to do it > automatically. I think you can consider installation of Grub to > partiotion as something just for advanced users. With that in mind I > believe guix should refuse (with some warning) installing grub that > way. Advanced users can use `--no-grub' option which will prevent guix > from fail and do manually anything they desire. And in the > documentation I'd give some short notice about that with link to Grub > manual. IMHO information that "only ZFS and BtrFS can embed core.img > into boot sector" belongs there. OK, thanks for the info. I=E2=80=99m tempted to think the GRUB manual shou= ld be the primary source for this sort of things. Thanks, Ludo=E2=80=99.