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 ms5.migadu.com with LMTPS id 6KglFE4MBWQPaAEAbAwnHQ (envelope-from ) for ; Sun, 05 Mar 2023 22:40:30 +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 SJHWE04MBWSgMAEAauVa8A (envelope-from ) for ; Sun, 05 Mar 2023 22:40:30 +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 D5EB42E2C2 for ; Sun, 5 Mar 2023 22:40:29 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pYw5Q-0005BT-6O; Sun, 05 Mar 2023 16:40:08 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pYw5N-0005B0-UZ for help-guix@gnu.org; Sun, 05 Mar 2023 16:40:06 -0500 Received: from relay8-d.mail.gandi.net ([2001:4b98:dc4:8::228]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pYw5L-0005wJ-8A for help-guix@gnu.org; Sun, 05 Mar 2023 16:40:05 -0500 Received: (Authenticated sender: manu@beffara.org) by mail.gandi.net (Postfix) with ESMTPSA id D91E61BF203; Sun, 5 Mar 2023 21:39:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=beffara.org; s=gm1; t=1678052398; h=from:from: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; bh=HjnSc+um/Ok81KjMMwBynVAD8Gr9YVT25AR9QERYDM0=; b=kibffR27k+0xMk8AvBAXvFp5Vb+ORkLKUwfnWJmQyMmJi9CbLkbea7ZngWJDFFo7fW0Pu+ pNLXcT2brwXgKJFAnKGTNRignynCUyoU1QRMl3MwwA99H2qupTcNOQIDNY07/G6lScykUW Xdx0/mdpbOSLUqxb6LLEanLYwp+X9c0dZpiO3BEqDtEwLxL/niLU62q46u0XUyvHwuOMcw hmxs2mNmzNWd6CwoWQEY5AQP2qZUD3qoh2T/tPtI8oKKQhncBw2X6MeoN9P40UXS6SOSPV luCp73hjwHAhiCJTehl7Opq5Pr1ZpKm/f51sgAdc5cWa4oZx7nIFtH4v6LFg3g== Date: Sun, 5 Mar 2023 22:39:56 +0100 Message-ID: <20230305223956.GB1967@beffara.org> From: Emmanuel Beffara To: wolf Cc: Roman Scherer , help-guix@gnu.org Subject: Re: installation on LVM on LUKS In-Reply-To: References: <20230302112553.GD11782@beffara.org> <86o7p9vp6w.fsf@burningswell.com> <20230303180339.GC2153@beffara.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit Received-SPF: none client-ip=2001:4b98:dc4:8::228; envelope-from=manu@beffara.org; helo=relay8-d.mail.gandi.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, 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: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org 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=1678052430; 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=HjnSc+um/Ok81KjMMwBynVAD8Gr9YVT25AR9QERYDM0=; b=Z6/TtxYHBpa/bHl5kpEyJjpEAD+IV6SWRNVtKPcnqLTWRbCZ/U3SRInxxSHUx/JMzDd+Ol s6Au+lagBRCl5yZS1lRc79VWIphtiJHamF4WOJK9gMzRUNV5k8/ypiQvzzMM27wwQPyaYU I6zjSX7T6N1SSRBPWpZc8tQyWK5UMGLEXLV2F8fi2tvqyCbiRb/8pA6IpJM8FqxlTOt3Rg oNzPg1OX1qkN0/gH/6w2ze3Zh955kc9EMaJsdhLz0XLJ3XBSLkYYP2Mv028PTQ5QlpJIpU Rnu3rv6kTtDEiW7hwmiXl+1jv1QkC7dXXk6ILYlXXnIX7xXj1vnahAI8n8BpuA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=beffara.org header.s=gm1 header.b=kibffR27; 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"; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1678052430; a=rsa-sha256; cv=none; b=FiPecqgeABVZP6WAQNJHA66dOfjkbPFyIuIniRNukKpEJoFVzChaEKDwchubr0+Lbx5dU6 EwMtmVJf6tqMpMP8xbRFN0d7KWzHFEJoZRmEpBF8WZMPammva9qL/cKY+Q4LJmO11b+lYU 3dl19ONoyTcjDY8L4qEdEez4LfwCHChIG9omSE3WXkG8XZqUailRiMxQdK+5MBrozE02Qs J2TazJNFQ0mAXC21vRwjbeyBdQcXhX8CjUUjgoFhalDZSov0plvIlmUD9ioPKNiZllj7Qj xIvd2fR/u5YvStfb+8AzMmiyZWhdXDB91chc3gWWgdP0oTGJIW8f72JoI5m3pw== X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -5.79 X-Spam-Score: -5.79 X-Migadu-Queue-Id: D5EB42E2C2 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=beffara.org header.s=gm1 header.b=kibffR27; 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"; dmarc=none X-TUID: tg29vpEJdArU De wolf le 04/03/2023 à 00:42: > On 2023-03-03 18:03:39 +0100, Emmanuel Beffara wrote: > > Unless I am missing something, tinkering with initrd modules has nothing to do > > with my issue. The missing “insmod lvm” is in grub.cfg, it is related to Grub > > modules, not kernel modules. The required modules for Grub are properly > > installed in /boot/grub (I mount the EFI partition as /boot), it is just that > > the generated configuration file does not load enough of them. > > Maybe that is the problem? For me it works out of the box, but I have EFI > mounted as /boot/efi. Could you maybe either try to do that as well, I just tried that: mounting the EFI partition in /boot/efi instead of /boot and adujsting the config.scm accordingly (the entry for /boot/efi in file-systems and the target for grub). I also cleaned everything there that was installed by Guix (the Guix folder, the grub folder). Turns out that this way, the system just cannot start. In the EFI partition, there is EFI/Guix/grubx64.efi but running this leads to an error: error: disk 'lvmid/(the UUID of the root fs)' not found. Entering rescue mode... I cannot do much in this recue mode. Of course Grub cannot find the partition since its modules for LUKS and LVM are now stored in the system's root partition under /boot, encrypted… I'm surprised that it works for you out of the box given what I observe. Where are Grub's modules stored ? Is the installed EFI binary somehow able to decrypt the partition and its LVM contents without loading modules for that ? > or (untested idea I just had) provide (dependencies mapped-devices) for the > /boot mount point as well (I know, it is not technically required)? I also tried that and it does not change anything. > I am using 64M EFI partition, so I could imagine that filling up, especially if > one does not clean up the generations very often. Since increasing the EFI size > could be impossible without reinstall, if this is done, it should likely be > opt-in only. Certainly. -- Emmanuel