From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id WJJ8KrBF22FkIAAAgWs5BA (envelope-from ) for ; Sun, 09 Jan 2022 21:29:36 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id gOhHJ7BF22E3rQAAauVa8A (envelope-from ) for ; Sun, 09 Jan 2022 21:29:36 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 0EE7C34255 for ; Sun, 9 Jan 2022 21:29:36 +0100 (CET) Received: from localhost ([::1]:39940 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n6eom-0002lv-Mg for larch@yhetil.org; Sun, 09 Jan 2022 15:29:33 -0500 Received: from eggs.gnu.org ([209.51.188.92]:39054) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n6enj-0002lf-OB for help-guix@gnu.org; Sun, 09 Jan 2022 15:28:27 -0500 Received: from cascadia.aikidev.net ([173.255.214.101]:46092) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n6eni-000071-4A for help-guix@gnu.org; Sun, 09 Jan 2022 15:28:27 -0500 Received: from localhost (unknown [IPv6:2600:3c01:e000:21:21:21:0:100e]) (Authenticated sender: vagrant@cascadia.debian.net) by cascadia.aikidev.net (Postfix) with ESMTPSA id 88B6A1AC43; Sun, 9 Jan 2022 12:28:20 -0800 (PST) From: Vagrant Cascadian To: Youni Git , raingloom Subject: Re: Devuan replaced grub and runs before Guix In-Reply-To: <17e3f964eaa.ff6cffb4211247.3299461496075338762@youni.world> References: <17df916775a.b9f446de119133.5335570200781620566@youni.world> <20211229011137.23a3af92@riseup.net> <17e3ee757b0.b39b2bc9207746.3901897334257848757@youni.world> <17e3f964eaa.ff6cffb4211247.3299461496075338762@youni.world> Date: Sun, 09 Jan 2022 12:27:49 -0800 Message-ID: <87sftwr6wq.fsf@ponder> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Received-SPF: none client-ip=173.255.214.101; envelope-from=vagrant@debian.org; helo=cascadia.aikidev.net X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: help-guix Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1641760176; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=gH+SGAtKYVZv9SMx+rAUFa7W1J6/Ss+G/cD6MGolFOs=; b=X2g8pW239SZFatrx8fNVAN7RNRiJU+p7qhdmNbGHJ6kUL7ov0P2aw+fIejpO4TgEIySIgQ mPI7s4gnTO36IaNJJtkok79QZgU4dKjNk2H/eMtunLn1C4VsarK5YiiHQfF1xBvAScyCrk fa0FO3D521coFRjPxz3A5anRXAtZQpasHvINftst5MBCn35eoDcIINGZjw4crhgxOmm3Jr 9W3i5HDQC0vjEZq9SJcc0AWiiCNuaW4+fYe65scBgYpr1EGnwuSACGUjDZ+CuKRG1uBBZ+ ymlaGilxCJmCNzTUTW/mZ/I3jDe5ZUW1kST1Q00JUK+Ji9ajSK6stbTyVF5GpQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1641760176; a=rsa-sha256; cv=none; b=oGLDiQBtLECC8hsmZp9Jzq3EBtLpZ3zejoptjvi9k5AdNNxPWK+QUttt1awkpG0JuhFtb2 +qnfY4N944uTmeq7nlXwoBeXW8Y63LlkaBdLzeyxAd/c4wwQZYSMx+bfzkheoPHzs3w88h zURnFqGugkw0DKQJEou1qf1U7b5kVITOACVMfT+TuXOzf4ycXzp4svuGkralmVtdZZGcoz wEE23138pXgKQh/QddNhG4jXlITqn0q80Tq6ZvtBzEp3kA5nDbRiX5vJR263TPKZsdSbgj tkXAUnJNDarnxsLAIeBLe7ENOzvELt8nN7ATCSMvCx7Gd6V6xlrcI00QkPBmMw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -5.21 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 0EE7C34255 X-Spam-Score: -5.21 X-Migadu-Scanner: scn0.migadu.com X-TUID: Nl3Vb0TurToS --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 2022-01-09, Youni Git wrote: > 1. I just enter grub command line while grub generated by Devuan appeared= (with button 'c') > > 2. found grub.cfg on guix disk here: > > ls (hd0,gpt2)/boot/grub/grub.cfg > > 3. And used it to run grub with this menu config file like this: > > configfile (hd0,gpt2)/boot/grub/grub.cfg > > 4. Guix grub menu showed with its backgrund. And I booted to Guix OS > > 5. Then I just copied Guix menuentry from that grub.cfg file to my Devuan= grub: > > # vim /etc/grub.d/40_custom: > > > > menuentry "GNU with Linux-Libre 5.13.13 (#33, 2021-09-04 17:57)" { > =C2=A0 search --file --set /gnu/store/y0dz7jdw78q3kgcjc8xy8zncxyl31k5p-li= nux-libre-5.13.13/bzImage > =C2=A0 linux /gnu/store/y0dz7jdw78q3kgcjc8xy8zncxyl31k5p-linux-libre-5.13= .13/bzImage --root=3D/dev/sda2 --system=3D/var/guix/profiles/system-33-link= --load=3D/var/guix/profiles/system-33-link/boot modprobe.blacklist=3Dpcspk= r,snd_pcsp,bluetooth,btusb,ath3k > =C2=A0 initrd /gnu/store/ccvhwm8h7h5xijab6gi65bjirz3nyxbv-raw-initrd/init= rd.cpio.gz > } Glad it worked out for you! You could also create a menu entry something like: menuentry "load guix grub configuration" { configfile (hd0,gpt2)/boot/grub/grub.cfg } This way, you don't have to update the grub menu every time you update guix's configuration... or even worse, if you delete the generation that happened to be hard-coded in your grub.cfg. You can maybe add a similar entry in guix's grub menu to boot Devuan from guix's grub menu too. You might want to get fancy and use the "search" command rather than hard-coding "(hd0,gpt2)" though I'm not sure exactly how to pull that off, since grub.cfg isn't a unique filename. Maybe using uuid or partuuid or something like that. Of course, feel free to experiment, or not! live well, vagrant --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQRlgHNhO/zFx+LkXUXcUY/If5cWqgUCYdtFSwAKCRDcUY/If5cW qjR6AP4lq2LPYiElLRWssf5ZFVYv5t7YnEnJeOUnMRQPqAfFhAD/cC1gPREQdi9M yqMbT8rDQyNYDaykzP7wN6mVMPj0Fw8= =S5Oo -----END PGP SIGNATURE----- --=-=-=--