From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id MJAVG88I22EzWwAAgWs5BA (envelope-from ) for ; Sun, 09 Jan 2022 17:09:51 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id iC+VF88I22HiegAAauVa8A (envelope-from ) for ; Sun, 09 Jan 2022 17:09:51 +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 C82E93B985 for ; Sun, 9 Jan 2022 17:09:50 +0100 (CET) Received: from localhost ([::1]:44286 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n6alR-0007Sj-Rn for larch@yhetil.org; Sun, 09 Jan 2022 11:09:49 -0500 Received: from eggs.gnu.org ([209.51.188.92]:47946) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n6ahJ-00065N-2O for help-guix@gnu.org; Sun, 09 Jan 2022 11:05:33 -0500 Received: from sender11-of-o52.zoho.eu ([31.186.226.238]:21514) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n6ahF-0005AU-Os for help-guix@gnu.org; Sun, 09 Jan 2022 11:05:32 -0500 ARC-Seal: i=1; a=rsa-sha256; t=1641744324; cv=none; d=zohomail.eu; s=zohoarc; b=AqBloFeZjFosVwMI+KYOmYauyeec66IcIbMzHsalr85b8wutxK9a7EHd9jWf0PhqjI8eBmTUz0wnOAiPQQwssVx+PEpQxD+If85Vl7JA9CU5pilYvpOW+4knutW8wv38E5gVJPYtUHx8QhxBTwZBgEWBm6k3WX95MpPaE7yJGC4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.eu; s=zohoarc; t=1641744324; h=Content-Type:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=CjN7ItoGW/u80SzgeVPdjoU/rzSuxVRjKYFDfnhkNtE=; b=F/BrPa4X3xxvxZVkrFZRQ4WCcm5fPBk1dAaKdu3o0+gJw2rgzMOBhf0MNNY36o80mRpTrYiZM9gPAoYjzywQvbcvNmSz46t2Tq9yPYJkUVIvi84RhTTRVJQ0SKfniuxK7Pj8Iaw+PkkhmWzgBGDUHGdNnwMw8PDOIxbD2bLTKgI= ARC-Authentication-Results: i=1; mx.zohomail.eu; dkim=pass header.i=youni.world; spf=pass smtp.mailfrom=git@youni.world; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1641744324; s=zmail; d=youni.world; i=git@youni.world; h=Date:From:To:Cc:Message-Id:In-Reply-To:References:Subject:MIME-Version:Content-Type; bh=CjN7ItoGW/u80SzgeVPdjoU/rzSuxVRjKYFDfnhkNtE=; b=P1lMa+F6QkOLyAlkNKwu5Op1lrOfxCZVI69k+6TrNOjsr4j13oSQXp4IQcpmsAeB /tHz7b7nC+cKqlh9b+WsF9dmdwgU6OXEz+zc25odPt36FTgCA1otPnOuK76DsVrIgof eOilyJXtCwLTrmCdpsoO4iJtpDJB+RpGdrLhgxsY= Received: from mail.zoho.eu by mx.zoho.eu with SMTP id 164174432225030.205360055838696; Sun, 9 Jan 2022 17:05:22 +0100 (CET) Date: Sun, 09 Jan 2022 16:05:22 +0000 From: Youni Git To: "raingloom" Message-Id: <17e3f964eaa.ff6cffb4211247.3299461496075338762@youni.world> In-Reply-To: <17e3ee757b0.b39b2bc9207746.3901897334257848757@youni.world> References: <17df916775a.b9f446de119133.5335570200781620566@youni.world> <20211229011137.23a3af92@riseup.net> <17e3ee757b0.b39b2bc9207746.3901897334257848757@youni.world> Subject: Re: Devuan replaced grub and runs before Guix MIME-Version: 1.0 Importance: Medium User-Agent: Zoho Mail X-Mailer: Zoho Mail Received-SPF: pass client-ip=31.186.226.238; envelope-from=git@youni.world; helo=sender11-of-o52.zoho.eu X-Spam_score_int: 2 X-Spam_score: 0.2 X-Spam_bar: / X-Spam_report: (0.2 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FROM_SUSPICIOUS_NTLD=0.498, HTML_MESSAGE=0.001, PDS_OTHER_BAD_TLD=1.859, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1641744591; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=39c17aJE/nzT/vnR6c5jXyE7TvoDZcOc5WVcwb8GuUc=; b=NcaUD8OoVgMsGkaTLWbXJASiIN4NzS8xKmTT/zNxEiy6eC/QpzjAzm0/35c6Uw+5MIsVpP o7SOQhAM8HBtBsi/IVzp8hVSR2fIcqv3P44PC8xD0qh2VBeNhv5louLEvAFR0u6s7lhIoO qj8s+fadJJU3yejpryPkasKIDYwbRxT20c2LLctjfHI8mkqnfmLtCIhQfEfvxjjiaWJNMF v5RgnF1PXx7L7IzW0XIXEHYMvYe4/JyEzCN8r6FeTYTt3fWyXcJtpMMO0vEvP+HUbWAI+D of0EBcX/8yHk0v1wygK0sHICSGmD1HGW7etr5hE1ZTv8wnGRCvoEpiq00HqtoQ== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1641744591; a=rsa-sha256; cv=fail; b=gmQRHO5jCRuqLuqmSLUd5sKWUU1mXwPp05cZsgCbntbOzENuPHJTZKM0JU6AAmybkh1DBY KM971rTkop5g8u4r0ojyIq+/H82ErShY0s2WGNA+6ZRGUuOY7xEWoiGUGRhiDXZPOqlGg1 o/EkSInWsyz4ShqtMZQEl6uyYEfoUEodvU3lgT9tiZHzvwtmCNhrJqe9Tg3/BSbp6KCIHC GMJI2S0sJkgTq/2hIgH0S/SOFhmvBMTOZgntY23zynrPiKo1SUzf97sOnPM/bBC0203P9R B8TWt6htnKewGqQN7BCm/io9LAP04TYyCmSGnHtTWSKCmasKtr0n5FAO+PEnEA== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=youni.world header.s=zmail header.b=P1lMa+F6; arc=reject ("signature check failed: fail, {[1] = sig:zohomail.eu:reject}"); 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: -1.00 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=youni.world header.s=zmail header.b=P1lMa+F6; arc=reject ("signature check failed: fail, {[1] = sig:zohomail.eu:reject}"); 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: C82E93B985 X-Spam-Score: -1.00 X-Migadu-Scanner: scn0.migadu.com X-TUID: R4PkHL2B4sgU Some clever developer from debian said me the easiest way. 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 g= rub: # 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-linu= x-libre-5.13.13/bzImage =C2=A0 linux /gnu/store/y0dz7jdw78q3kgcjc8xy8zncxyl31k5p-linux-libre-5.13.1= 3/bzImage --root=3D/dev/sda2 --system=3D/var/guix/profiles/system-33-link -= -load=3D/var/guix/profiles/system-33-link/boot modprobe.blacklist=3Dpcspkr,= snd_pcsp,bluetooth,btusb,ath3k =C2=A0 initrd /gnu/store/ccvhwm8h7h5xijab6gi65bjirz3nyxbv-raw-initrd/initrd= .cpio.gz } # update-grub2 And now I sure boot to Guix from Devuan's grub menu entry. This is the easi= est and may be reliable way. Just need to update grub menu entry when gener= ate new system with 'guix system reconfigure config.scm'. Nice! ---- On Sun, 09 Jan 2022 12:54:15 +0000 Youni Git wrote -= --- I had this Guix grub entry in Guix OS: https://ibb.co/Btq1pV7 I created this grub menu entry in devuan: https://ibb.co/WH7hggw vim /etc/grub.d/40_custom menuentry "Guix" { =C2=A0 search --set=3Droot --fs-uuid 24c6dcca-d831-4f0a-ad59-efa1035be093 =C2=A0 search --file --set /gnu/store/y0dz7jdw78q3kgcjc8xy8zncxyl31k5p-linu= x-libre-5.13.13/bzImage =C2=A0 linux /gnu/store/y0dz7jdw78q3kgcjc8xy8zncxyl31k5p-linux-libre-5.13.1= 3/bzImage --root=3D/dev/sda2 --system=3Dvar/guixprofiles/system-33-link --l= oad=3D/var/guix/profiles/system-33-link/boot modprobe.blacklist=3Dpcspkr,sn= d_pcsp,bluetooth,btusb,ath3k =C2=A0 initrd /gnu/store/ccvhwm8h7h5xijab6gi65bjirz3nyxbv-raw-initrd/initrd= .cpio.gz } update-grub But I got Guix OS stops on here: https://ibb.co/JRZmCFK I found kernel, initrd and parameters like you advised. But actually hash d= iffers from that guix is using in parameters. And I don't know why it does not boot stopping on usb-bluetooth mouse detec= tion. I also tried to remove modprobe.blacklist and boot but also Guix stop= s on mouse detection. I just added 'search --set=3Droot' line is that a rea= son? May be I need to use --root UUID instead of /dev/sda2 ? find /gnu/store -maxdepth 1 -name '*-system' ...many entries ...-guix-system /gnu/store/vxzzh5rz9isqfx5krn3iq5ygzxbafbdi-system ls /gnu/store/vxzzh5rz9isqfx5krn3iq5ygzxbafbdi-system activate=C2=A0 boot=C2=A0 channels.scm=C2=A0 configuration.scm=C2=A0 etc=C2= =A0 initrd=C2=A0 kernel=C2=A0 locale=C2=A0 parameters=C2=A0 profile=C2=A0 p= rovenance root@antelope ~# ls -l /gnu/store/vxzzh5rz9isqfx5krn3iq5ygzxbafbdi-system/k= ernel lrwxrwxrwx 2 root root 51 Jan=C2=A0 1=C2=A0 1970 /gnu/store/vxzzh5rz9isqfx5= krn3iq5ygzxbafbdi-system/kernel -> /gnu/store/b64c0c8hw526b5742w75xii0ny0i4= 009-profile root@antelope ~# ls -l /gnu/store/b64c0c8hw526b5742w75xii0ny0i4009-profile/= bzImage=20 lrwxrwxrwx 2 root root 73 Jan=C2=A0 1=C2=A0 1970 /gnu/store/b64c0c8hw526b57= 42w75xii0ny0i4009-profile/bzImage -> /gnu/store/8xfrsfgdbfs1hyr49apzgmg66gg= c5khf-linux-module-database/bzImage root@antelope ~# ls -l /gnu/store/vxzzh5rz9isqfx5krn3iq5ygzxbafbdi-system/i= nitrd=20 lrwxrwxrwx 2 root root 69 Jan=C2=A0 1=C2=A0 1970 /gnu/store/vxzzh5rz9isqfx5= krn3iq5ygzxbafbdi-system/initrd -> /gnu/store/ccvhwm8h7h5xijab6gi65bjirz3ny= xbv-raw-initrd/initrd.cpio.gz root@antelope ~# cat /gnu/store/87vv0rknchgwghm3j2bqqpk2rqv2lxqx-parameters (boot-parameters (version 0) (label "GNU with Linux-Libre 5.13.13") (root-d= evice "/dev/sda2") (kernel "/gnu/store/y0dz7jdw78q3kgcjc8xy8zncxyl31k5p-lin= ux-libre-5.13.13/bzImage") (kernel-arguments ("modprobe.blacklist=3Dpcspkr,= snd_pcsp,bluetooth,btusb,ath3k")) (initrd "/gnu/store/ccvhwm8h7h5xijab6gi65= bjirz3nyxbv-raw-initrd/initrd.cpio.gz") (bootloader-name grub-efi) (bootloa= der-menu-entries ((menu-entry (version 0) (label "Devuan") (device #f) (dev= ice-mount-point #f) (linux "(hd1,gpt2)/vmlinuz") (linux-arguments ("root=3D= /dev/sdb2")) (initrd "(hd1,gpt2)/initrd.img")))) (locale "en_US.utf8") (sto= re (device #f) (mount-point "/") (directory-prefix #f) (crypto-devices ()))= )root@antelope ~#=20 ---- On Wed, 29 Dec 2021 01:11:37 +0100 raingloom wrote ---- On Mon, 27 Dec 2021 00:32:18 +0100=20 Youni Git wrote:=20 =20 > Hello, dear developers! Merry Christmas and Happy New year!I would=20 > like to ask questions I did not dug in the web, I hope there are=20 > short answers.I had Guix OS installed on /dev/sda and i had grub=20 > bootloader there configured to run guix and devuan from another sdd,=20 > my=20 > config:https://gitgud.io/youni/guix-configs/-/blob/master/config-wpa2-wlp= 5-wf-blacklist--my-desktop-services--isp.conf#L91Everything=20 > worked fine, i could boot to Guix or choose Devuan from the grub menu=20 > controlled by Guix.But i made Devuan 3 to Devuan 4 upgrades. And=20 > Devuan replaced grub and now i have no guix in the menu.I think i can=20 > add Guix to devuan grub menu, but I'm not sure I can find /vmlinuz=20 > and /initrd files in the Guix partitions.I have 3 questions:1. How to=20 > boot Guix manually from grub command line?2. How can I add Guix OS to=20 > devuan grub menu, which files i need to use for linux image and=20 > initrd, where to find them on Guix?3. Can I easy replace back grub by=20 > Guix making guix controls grub again?Thank you.=20 =20 Oh heck, I used to manually kexec Guix, but it was on a different drive=20 with its own GRUB install.=20 /run/current-system seems to point to store entries ending in -system.=20 So to find the store item:=20 find /gnu/store -maxdepth 1 -name '*-system'=20 Within the store item:=20 kernel/bzImage: this is the kernel image to boot.=20 initrd: this is the initramfs=20 =20 That should be enough info to build a GRUB menu entry. There are=20 some other options like modprobe.blacklist but I'm not sure where=20 they are in the store.=20 =20 Oh there is also the init binary. Uh. Not sure where that is.=20 =20 But I think this is a good enough starting point, hopefully you can=20 figure out the rest.=20 =20 Alternatively, maybe try chrooting into the Guix partition and running=20 reconfigure again?=20 =20 In any case, good luck!