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 30244158094 for ; Fri, 16 Sep 2022 17:57:59 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 52403E0895; Fri, 16 Sep 2022 17:57:52 +0000 (UTC) Received: from mail-pj1-f44.google.com (mail-pj1-f44.google.com [209.85.216.44]) (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 18898E0877 for ; Fri, 16 Sep 2022 17:57:51 +0000 (UTC) Received: by mail-pj1-f44.google.com with SMTP id bu5-20020a17090aee4500b00202e9ca2182so2149255pjb.0 for ; Fri, 16 Sep 2022 10:57:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date; bh=FuR34nSc+V4xjnk/B8pc1Hkn50FDHt6xGOjVTqveXTI=; b=fAknW8EfEvdiX07+P4454vLXAOZZa/eq5uYa/QEWa+GHHnvXf+2EOSxga/n2T0bRWo yxPdMoKh2eGGQiqJPH8Uc9MdzKV5QrVX0D8iFyJ+Ii75blVptmwWTPK83NYASVfT6Yu1 bgQyA4/0EkCM/G8Vf5cho/Vvawbl8WidaWCDLSGy3slzTyxjBuZD9rKiWaT74YboJKIj 996m4bniLnS045Eftc0hydvGpbbTK6jRZZkeb/DGajKQo34m5TxhHjwzALiVvNsi8AGk A/LgBZXIRCIXF3MhC2FVCU/NlsWLFGyW0Tssy9XcJS5X711p3hJ3sphPnPqnPUxFs+43 wi9Q== X-Gm-Message-State: ACrzQf299DJkrp+1CVseFGo6uao2qVbnqxyGZllb/dSc8Gl17V6ub0Lw HJBbtDvKM5QOK7uWRzZoRxcbuyODbCPb2AZkNUdTiZlMCHI= X-Google-Smtp-Source: AMsMyM7nRdClYMcrG4NiL9cwBrwo0rsSufVO1/REaISeKpjP6J5qU6etmjqlD9QYCivnISIhhxad3F7gd7iB0skskzo= X-Received: by 2002:a17:902:daca:b0:178:77ca:a770 with SMTP id q10-20020a170902daca00b0017877caa770mr1001396plx.54.1663351070598; Fri, 16 Sep 2022 10:57:50 -0700 (PDT) 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 References: <5874509.lOV4Wx5bFT@wstn> <20220914230945.489ac907@digimed.co.uk> <12071369.O9o76ZdvQC@wstn> <4745830.GXAFRqVoOG@wstn> In-Reply-To: <4745830.GXAFRqVoOG@wstn> From: Rich Freeman Date: Fri, 16 Sep 2022 13:57:42 -0400 Message-ID: Subject: Re: [gentoo-user] Separate /usr partition To: gentoo-user@lists.gentoo.org Content-Type: text/plain; charset="UTF-8" X-Archives-Salt: 35b4229e-1a07-43c8-a288-bd216eedde29 X-Archives-Hash: 5f3460bf5bd102a2cb8ea174f8235659 On Fri, Sep 16, 2022 at 11:16 AM Peter Humphrey wrote: > > > 1. dracut: 90crypt: Could not find any command of '/lib/systemd/systemd- > cryptsetup cryptsetup'! > > ...and similar for bluetooth. > > What do I have to include in /etc/dracut.conf.d/mine.conf to silence these? I > already omit the relevant modules: > > $ grep -e crypt -e blue /etc/dracut.conf.d/mine.conf > omit_dracutmodules+=" bluetoothd " > omit_dracutmodules+=" systemd-cryptsetup " > omit_dracutmodules+=" cryptsetup " > There are no modules by any of those names, so these config settings are a no-op. systemd-cryptsetup is called by the crypt module There is also a bluetooth module. Modules are located in /usr/lib/dracut/modules.d. I suspect the output of dracut mentions the names of the modules it is loading as well, or probably has a verbosity flag to have it talk more about what it is doing. For the most part modules tend to be automagic. Each one figures out if you're using it, and installs stuff if needed, and if not it no-ops. So if it can't find cryptsetup then it won't go trying to put support for it in the initramfs. I do get though that people prefer to have commands avoid output in a successful state, so omitting those modules should do the trick. Dracut modules are pretty simple in their operation. They all have a module-setup.sh script which is run by dracut and which does any logic, tells dracut what to install in the initramfs, and which registers scripts to run during various phases of boot. I haven't looked at them in ages but I did write up this article on how they work: https://rich0gentoo.wordpress.com/2012/01/21/a-quick-dracut-module/ -- Rich