From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id DAEEB15817D for ; Sun, 16 Jun 2024 08:04:34 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id AF499E2A5A; Sun, 16 Jun 2024 08:04:29 +0000 (UTC) Received: from mailsrv30.linznet.at (mailsrv30.linznet.at [80.66.43.12]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 2855CE2A53 for ; Sun, 16 Jun 2024 08:04:28 +0000 (UTC) Received: from mail.linznet.at (mail.linznet.at [80.66.39.75]) by mailsrv30.linznet.at (Postfix) with ESMTPS id 1B48B7D29D for ; Sun, 16 Jun 2024 10:04:27 +0200 (CEST) Received: (qmail 3729922 invoked from network); 16 Jun 2024 08:04:26 -0000 Received: from unknown (HELO zeus.localnet) (a03096@linznet.at@91.142.26.35) by mail.linznet.at with ESMTPA; 16 Jun 2024 08:04:26 -0000 From: Alexander Puchmayr To: gentoo-user@lists.gentoo.org Subject: [gentoo-user] Uefi + uki stuck while booting (/dev/gpt-auto-root) Date: Sun, 16 Jun 2024 10:04:26 +0200 Message-ID: <22321113.EfDdHjke4D@zeus> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Archives-Salt: 2ee8512f-6a87-4f2e-8c35-f8e291c3948b X-Archives-Hash: e7d833a5692284d8921043b055cd4bb0 Hi there, I just tried to prepare my new laptop for UFEI+secureboot by creating a single unified kernel image including kernel,initrd,microcode,etc. NB: The partition layout has a vfat/Efi partition and a luks encrypted lvm container holding SYS(Root), Data(home) and swap. I added uki and ukify use flags to installkernel and systemd, checked the configuration again and configured the kernel by emerge --config sys-kernel/ gentoo-kernel. Bulding the kernel image seems to work fine, the log messages say its creating a initrd using dracut, creating a efi file, signing it properly and even installs it under /boot/efi/EFI/Linux. When booting it, it loads the kernel and then seems to get stuck: Timed out waiting for device /dev/gpt-auto-root Dependency failed for File System Check in /dev/gpt-auto-root Dependency failed for Root Partition Dependency failed for Initrd Root File System Dependency failed for Initrd Mountpoints Configured in the Real Root Dependency failed for Initrd Root Device Then it ends up in an emergency shell. There's a log in /run/initramfs/rdsosreport.txt, which reveals that it does not find my encrypted lvm partition (LUKS encrypted lvm container holding SYS, DATA, SWAP, etc), which obviously needs to be setup first. Seems like some boot parameter is missing. Checking systemd's USE flags: Relevant flags lvm + cryptsetup + boot + secureboot use flags are set To me it looks like as if its missing information which partition to use for decrypting/mounting, and which lvm volume to use as real-root. Is this a dracut configuration? A systemd configruation? An installkernel configuration? Something else? Thanks Alex