From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id EC4YIvzwDmPHPAEAbAwnHQ (envelope-from ) for ; Wed, 31 Aug 2022 07:26:20 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id IGArIvzwDmOIjQAA9RJhRA (envelope-from ) for ; Wed, 31 Aug 2022 07:26:20 +0200 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 C00171CB7B for ; Wed, 31 Aug 2022 07:26:18 +0200 (CEST) Received: from localhost ([::1]:36928 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oTGEz-000085-Gd for larch@yhetil.org; Wed, 31 Aug 2022 01:26:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56656) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oTGEl-00007j-LE for guix-patches@gnu.org; Wed, 31 Aug 2022 01:26:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:48207) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oTGEl-00055E-4Y for guix-patches@gnu.org; Wed, 31 Aug 2022 01:26:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oTGEk-0004I9-Le for guix-patches@gnu.org; Wed, 31 Aug 2022 01:26:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#57496] [PATCH 0/2] Add support for chain-loader Resent-From: typ22@foxmail.com Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 31 Aug 2022 05:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 57496 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 57496@debbugs.gnu.org Cc: tiantian X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.166192354416472 (code B ref -1); Wed, 31 Aug 2022 05:26:02 +0000 Received: (at submit) by debbugs.gnu.org; 31 Aug 2022 05:25:44 +0000 Received: from localhost ([127.0.0.1]:37956 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oTGES-0004Hb-34 for submit@debbugs.gnu.org; Wed, 31 Aug 2022 01:25:44 -0400 Received: from lists.gnu.org ([209.51.188.17]:46328) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oTGEL-0004HN-T4 for submit@debbugs.gnu.org; Wed, 31 Aug 2022 01:25:42 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36688) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oTGEK-00007R-IG for guix-patches@gnu.org; Wed, 31 Aug 2022 01:25:36 -0400 Received: from out203-205-221-242.mail.qq.com ([203.205.221.242]:37883) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oTGEC-0004n8-Op for guix-patches@gnu.org; Wed, 31 Aug 2022 01:25:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foxmail.com; s=s201512; t=1661923516; bh=Lb1mAaj7JCIuzwCniTgi46ey3uNE9QHHliFlOLOp8ZQ=; h=From:To:Cc:Subject:Date; b=EsEj+wi+C4nbI8NsUfVdgHHItfm/pdqksaQOpmOqc4zhpt+sxxDWYRGN8L/GrkMn7 cUtonrJUYiqjmANTJkQIixB+5fhJbb1m0qlXMSFR3rxSIldmyXo1b64LOra5KC6vRx 8+5+ClXOhG7QR+AanOGc6jBPFLCSEgPWUowr3aEo= Received: from localhost.localdomain ([240e:398:28aa:8901:2e5d:53be:47ef:3da]) by newxmesmtplogicsvrszb7.qq.com (NewEsmtp) with SMTP id 60633E96; Wed, 31 Aug 2022 13:24:06 +0800 X-QQ-mid: xmsmtpt1661923446t9yb6gny8 Message-ID: X-QQ-XMAILINFO: OZZSS56D9fAjsWg8HbpvciaLmMmFx32fx6byK1eQCogi1D/5992mALZm5z58JG 3c/WSy23I5kFRW8SKX1EdCORyhaNgI6XSMWEmfgDQnGGZm7Jlk9EsGlNgJCd6hul0Wc/xxLBV/dU UbB+Ty9ugZMSe+TVtu1LPW6tcS1nYLzuOsolkQVUJXrEtighQzcgidG6WHp16EsWvsJ6ywhPIeAI 6R0cCU+xNqHXDvo77AIhrvDw+RY6AwqwYKOsl8mAeQvuuCQFiNcLFHKpW3/fz2KRxkv0gVc4U/Rn EqtFrvXY1Ll060eFhISn2PD3zXdU8CKlLmPnSDGZuOnogw39akVuEtClR4jk5Hw5exFCG5HCI3se penVkWg7rjFQ9q4kCR/5gpwVeII8ceBYp9eDtSBCzG+w2yX2yjTSqU+vSQhH6CLd8OpqJfvM/fiY Em7um0YwQPYuKUNmBiW8EgaOyPS1BQf+PYyoWvV0x8FtDOcm6lD5fbXOza5GBSPKTCxQFvQUkjzZ JghkBzR98klwitsEtrRj1m93/OrOtXJ3ufPLeETCo2+YcODnQOGs76S8K5MXKgdVdhzEanKclCGZ NRccDybV+DSdU0I0KnqPudyxi+0Nu+EFmu57KucIHLR43OQmWSf8UoXZMBmnfzUZDMEbucRsEN8N Yw5LoCJ9Psbr/TYJnnjMJHq3CTgi1vaicjqkKzKBJG5Zred2TX5hllLUMDgJyPXHIvNK8Hi4s8Li dGa4dmVLete7SkdBYeLC+7kUQIwVPgnfb8aliws1xdFmX5+MHitqaahyB65mKDgfOWK406kt34TC 5qbnafOiUncULF4FhckPc7g7Wgj7JVafWL+32WvtCKttlW9rzuaqOmedAGUbRoiyYdWL5dug3vmZ w1VOnU2KrLgn3vuBKiLNqqtT7fOBnPSqosP/Wtmmw9piuFmvvlo+9uVXIbOyOCuzLf0l0Sy+yzLF Z5SjfBjpATK2cutSXatBGGU12Y2kPuXUcNxiK9FhLiuag8dECq4SqJd+JggGPn From: typ22@foxmail.com Date: Wed, 31 Aug 2022 13:23:06 +0800 X-OQ-MSGID: X-Mailer: git-send-email 2.37.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=203.205.221.242; envelope-from=typ22@foxmail.com; helo=out203-205-221-242.mail.qq.com X-Spam_score_int: 11 X-Spam_score: 1.1 X-Spam_bar: + X-Spam_report: (1.1 / 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, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HELO_DYNAMIC_IPADDR=1.951, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_DYNAMIC=0.982, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1661923580; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=Lb1mAaj7JCIuzwCniTgi46ey3uNE9QHHliFlOLOp8ZQ=; b=MS/plJeeFyZGu1qTqlA1z8OgsYNVa2q1Tn7qripCqGR5k7oHzp5qTD+HA47PIW1nqgKvIS C6NkF6YIFPBuzrnmgR2W7Bvs/XYF6/v26DBfMekQ47DtAvZmEiO+tP+i/i+TGMBio5Kwen L5xET8S6qAAmGewHZ3MUuEIA/LHxv2QNwLa5cvkvP2gs++BvVRTYkwvvuzrSOe4JYf3DXI zLVAq/wTMSyWZwL41Lnrhs8XntwyURPiKtCmjM/ksMuNnGxUZArnKbuEKOcCHZCWM2zxDO AX6urwFltMBdIC6sXKa8DCgPDQ28CFWgEERmwr25TNVgAYxxSTe4SUIs65NaqA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1661923580; a=rsa-sha256; cv=none; b=nu7y+zzZtO15UXbvpgfEPNtGyxaX/+5XxuTfr86wdxxHC9A8ZcjPY4X9rKeuRrc4Ot4iUX d2Fw6EF9pJSkmX3QE8wdmlIFa1bmCpXmAI9R8vTiBptLKrlrrl644KaQlUx1lfUnG5ZJHQ nwFjo1MXwGmn2tZbgpm9DZN50Rb4MvSNcYdHUs845l/UHvphPh20xuMbSIBZ620qs10KcN kxFqCTnmR8XD7OwqXAjb6G1rKCj5ArJc6d/MR/aWDge2ibLOCEICGCe1c4cUDYBTaB/w7M WoWuHP7BLc8EnPOIv5GgmR55TlsoyXUt4VOejjFrT32dVuEsdQc6+EaXbMl1iA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=foxmail.com header.s=s201512 header.b=EsEj+wi+; dmarc=fail reason="SPF not aligned (relaxed)" header.from=foxmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 8.01 X-Spam: Yes Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=foxmail.com header.s=s201512 header.b=EsEj+wi+; dmarc=fail reason="SPF not aligned (relaxed)" header.from=foxmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: C00171CB7B X-Spam-Score: 8.01 X-Migadu-Spam: Yes X-Migadu-Scanner: scn1.migadu.com X-TUID: OvQ0e+xorBuE From: tiantian Hi Guix, I just started using guix system soon. I used archlinux before. Now I want to move from archlinux to guix system. It took me about 2 years to move from windows to archlinux, and now it may take me a long time to complete the moving from ArchLinx to guix system. During this period, guix system and archlinux will coexist on my computer. Therefore, it is necessary for me to easily enter another system in the boot interface. So I want to add support for chain-loader in menu-entry of guix system. Why do I want to use chainloader instead of linux and initrd? 1. guix system and archlinux are independent of each other in my computer. They are just on the same computer, but they have their own disk partitions. I also don't want them to interfere with each other. (I have no money to buy more computers. I just have one computer.) 2. If using linux and initrd, modify the boot arguments of one of them, which must be in the other system. I think it is strange and inconvenient. It's also not in line with the above idea of mutual independence and non-interference. 3. I am a novice. If an unexpected event occurs when using linux and initrd, I can't repair it quickly and timely. Is the chain-loader free? The chain-loader is a function of grub, and grub's protocol is GPL3. I think it is free. Although chain-loader can boot nonfree system like windows, it's like nonfree software can run on linux-libre, and linux-libre is free. If Guix think it's nonfree, I will only keep these changes in my computer. Here I want to express my thanks to Josselin Poiret. When I tried to start this task, I found that there was a bug with the menu-entry. When the device of menu-entry is UUID or file-system-label, an error will be reported by 'guix system' command. I can't fix it. Then I reported this bug in bug#57307. Thanks to Josselin Poiret fixing the bug, I can continue this task. My English is not good, I mainly rely on translation software. If I have any grammar problems and tone problems, please forgive me. I am sending these emails with respect. Thanks, tiantian tiantian (2): gnu: bootloader: Extend `' for chain-loader. gnu: bootloader: grub: Add support for chain-loader. doc/guix.texi | 15 +++++++++ gnu/bootloader.scm | 40 ++++++++++++++++++---- gnu/bootloader/grub.scm | 73 ++++++++++++++++++++++++----------------- 3 files changed, 92 insertions(+), 36 deletions(-) base-commit: 6beadc82df204f315d06ea35f2e232bb32f8e440 -- 2.37.2