From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 eFTzIdb7AWS3DwAAbAwnHQ (envelope-from ) for ; Fri, 03 Mar 2023 14:53:26 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id yLCcIdb7AWRijgAAauVa8A (envelope-from ) for ; Fri, 03 Mar 2023 14:53:26 +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 2347B3F51A for ; Fri, 3 Mar 2023 14:53:26 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=beffara.org header.s=gm1 header.b=eht+z5Qt; 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-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1677851606; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=Zz+LX9dpSxGJt4VgS82bS+jmYQvl1b+4D1JWSbOzJyk=; b=P8zYP9b4F+4JgSL2x5GjPH3aXUs1wd3Na0aJV9oi/Fd+AsEsug4LLEoUcFphvJbXbT9SpW JW4YOiQebpPXDJPWsmD5sUFXTly/wjz2ZFWyRRvL8QudpswsFFZVq7Iy0OlCFhCyDKHPwm 0jrBIl8J/2IfUdjB94OGVwHRC6LC73axPknOKP2y+IQWRhklxOOJ1VW1BPGIrTc8/vS6Q8 7wOE9zP+SS/9NIESpFVMK6LIFisl644eJGQEUJqvtWZgVJQPziWRFy4f+mJBDJ7Qt0CSeM AB2sv3Z9+vmV+c4NqXLY7tOy2OG+ugp0ffUeiPDIMWH3yLHrk0hSstBOi3hjBA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=beffara.org header.s=gm1 header.b=eht+z5Qt; 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=1677851606; a=rsa-sha256; cv=none; b=V9h9CRmWfk1r2kmPRXPLjqdhTf9RV0q6Lasze8KGnEokJCDcNvU3LAHERKBGtc06iONGte BJMSZhaCp54E06m2qjuA3oaCIeeowF2Gkb1vmcKTeJ9LfGPMINHJ6sKRH/iw1/nUk+c6tR xC04Id6LKkA/pC2O+Tv6BD9Gggh5nZDruUlH6kGj8otyG4hDcEpIdIc3cWJhCBCGw3O98S 9BQEUGP+allazSwWuwpt2u2D6hRsyq2XDlajX7jGUGB4+8fMYSQZWMq4zTlZ7kj1+fEw5b VjhBspq379Lzci6r+w9CNQRYeVYopu4TxFtN+zoj4v9R/+QwdoCQ9DfATvuZgw== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pY5qJ-0002Xk-Am; Fri, 03 Mar 2023 08:53:03 -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 1pXg8T-0002Ij-VE for help-guix@gnu.org; Thu, 02 Mar 2023 05:26:06 -0500 Received: from relay8-d.mail.gandi.net ([217.70.183.201]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pXg8N-0008G5-4v for help-guix@gnu.org; Thu, 02 Mar 2023 05:26:01 -0500 Received: (Authenticated sender: manu@beffara.org) by mail.gandi.net (Postfix) with ESMTPSA id A356F1BF205 for ; Thu, 2 Mar 2023 10:25:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=beffara.org; s=gm1; t=1677752755; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: references:references; bh=Zz+LX9dpSxGJt4VgS82bS+jmYQvl1b+4D1JWSbOzJyk=; b=eht+z5QtVwZl81aUNdd1dO1/b8UZCyRSG105cPZS6JDmOhlM1nNDShCselxOdxm38FxKzO MRsrVSb+PdACrh4T1+FnPKCV4qziMZm9NhSoAEY9Lqx1eMofZUqrxW2qFytO/7eHeTSL95 ZsnOEBthmbF2EZxHJGA2yBrzxNhm1utVLe7HFRSf4uPbAw/pQ2pLkR78llaaxIJYX0NJ9Z RWY7Pj3C1U+NG3pO91nMmr6iU8vwjfkx++gdF3Vqfkjmm2YaHqBgBgpUHkFbxtn2f9Peo9 tnk/NKIg1REsU+UNJQ3LOS4yVQ4gcdpxEFrAffYQeNaK7/brAx/qtPSy93w4LA== Date: Thu, 2 Mar 2023 11:25:53 +0100 Message-ID: <20230302112553.GD11782@beffara.org> From: Emmanuel Beffara To: help-guix@gnu.org Subject: installation on LVM on LUKS References: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="F05lfO0Dtv37IC9a" Content-Disposition: inline Content-Transfer-Encoding: 8bit Received-SPF: none client-ip=217.70.183.201; 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, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Fri, 03 Mar 2023 08:52:59 -0500 X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: X-Migadu-Spam-Score: -2.60 X-Spam-Score: -2.60 X-Migadu-Scanner: scn0.migadu.com X-Migadu-Queue-Id: 2347B3F51A 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-Country: US X-Migadu-Flow: FLOW_IN X-TUID: XjIPeHajlKrO --F05lfO0Dtv37IC9a Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit Hello, I am currently trying to install Guix System on my laptop and I am facing an issue with the bootloader configuration. I use full-disk encryption with a single encrypted partition, split into several logical volumes using LVM, plus an extra non-encrypted partition for EFI boot material: nvme0n1 259:0 0 953,9G 0 disk ├─nvme0n1p1 259:1 0 953,4G 0 part │ └─manivelle 254:0 0 953,4G 0 crypt │ ├─storage-swap 254:1 0 32G 0 lvm [SWAP] │ │ [...] │ └─storage-guix 254:5 0 64G 0 lvm / └─nvme0n1p2 259:2 0 487M 0 part /boot I attach the system configuration, which I derived from the desktop template. Everything installed fine EXCEPT that Grub fails to load its LVM volume, hence the root partition is not found. Indeed, the produced grub.cfg has no mention of lvm anywhere. If I adjust it by inserting "insmod lvm" somewhere, either at the start or in a menuentry, or if I do that by hand in the Grub shell, then the system starts and works fine. Did I miss something in the configuration ? As a related point, this setup requires entering the decryption password twice: once so that Grub can load the kernel from the store, and once so that the kernel can open the volume itself. I understand the situation is known, but it could be avoided, for instance, by copying the kernel and initrd somewhere in the EFI partition so that they could be loaded directly. Besides, for some reason, Grub is extremely slow at opening the partition: it takes around 30 seconds to start after I correctly enter the password, whereas the kernel boots in just a few seconds after I enter the password for it. Any thoughts on this ? -- Emmanuel --F05lfO0Dtv37IC9a Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="config.scm" Content-Transfer-Encoding: 8bit (use-modules (gnu) (gnu system nss) (guix utils)) (use-service-modules desktop sddm xorg) (use-package-modules certs gnome) (operating-system (host-name "manivelle") (timezone "Europe/Paris") (locale "fr_FR.utf8") (keyboard-layout (keyboard-layout "fr")) (bootloader (bootloader-configuration (bootloader grub-efi-bootloader) (targets '("/boot")) (keyboard-layout keyboard-layout) (terminal-outputs '(vga_text)) )) (mapped-devices (list (mapped-device (source (uuid "8c8e1490-378f-4e1c-b4c6-25f44070afce")) (target "storage") (type luks-device-mapping)) (mapped-device (source "storage") (targets (list "storage-guix" "storage-swap")) (type lvm-device-mapping)))) (file-systems (append (list (file-system (device (file-system-label "guix")) (mount-point "/") (type "ext4") (dependencies mapped-devices)) (file-system (device (file-system-label "boot")) (mount-point "/boot") (type "vfat"))) %base-file-systems)) (swap-devices (list (swap-space (target (file-system-label "swap")) (dependencies mapped-devices)))) (users (cons (user-account (name "manu") (comment "Manu") (home-directory "/home/manu") (group "users") (supplementary-groups '("wheel" "netdev" "audio" "video"))) %base-user-accounts)) (packages (append (list nss-certs gvfs) %base-packages)) (services (append (list (service gnome-desktop-service-type) (service xfce-desktop-service-type) (set-xorg-configuration (xorg-configuration (keyboard-layout keyboard-layout)))) %desktop-services)) (name-service-switch %mdns-host-lookup-nss)) --F05lfO0Dtv37IC9a--