From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id 6CGyIFRXPmTJiwAASxT56A (envelope-from ) for ; Tue, 18 Apr 2023 10:39:48 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id IGC0IFRXPmSIjgAA9RJhRA (envelope-from ) for ; Tue, 18 Apr 2023 10:39:48 +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 B77492A55D for ; Tue, 18 Apr 2023 10:39:47 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pogrw-0007Ul-U4; Tue, 18 Apr 2023 04:39:20 -0400 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 1pogrv-0007Uc-VG for help-guix@gnu.org; Tue, 18 Apr 2023 04:39:19 -0400 Received: from mail-wm1-x330.google.com ([2a00:1450:4864:20::330]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pogrt-0000uV-PT for help-guix@gnu.org; Tue, 18 Apr 2023 04:39:19 -0400 Received: by mail-wm1-x330.google.com with SMTP id ay3-20020a05600c1e0300b003f17289710aso3044104wmb.5 for ; Tue, 18 Apr 2023 01:39:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1681807156; x=1684399156; h=in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:cc:to:from:date:sender:from:to :cc:subject:date:message-id:reply-to; bh=0XJJwoLKYB95xh5lGAbBzj9/QpKhUX+wNiGS9kCq1/8=; b=Z/A5fhY/uN3Mad05b+OCV747Gm54jC15vrr43lYuQZgjkr/yS8aj61ezC/nKziHyEz NYIOEvS4aA4D59JbdULO1UGJFgj7+GJ3bh/aQCGuwEiZvziiLdp3ewd0fKrldlHEo6CA lHJiTFru+jIik2JHk/xGLQSVjAZ4H8CZABj6Y7hbrHrWOdNeCVEm5e70J4YDojuG10Qe RuNEvH1G4dJ6GZxhNCCG2E/xoaNl6IeoWGok7KDhQG0+W/KQflPEvZKNcmYJd2+iElil Z1Q5BPtrrJK8cwSQjjVxxp0jFFTqQ3hBWIGlEaBYJqWBypYJJWzsChHlnYKcgVZZs/56 3+Zw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681807156; x=1684399156; h=in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:cc:to:from:date:sender :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=0XJJwoLKYB95xh5lGAbBzj9/QpKhUX+wNiGS9kCq1/8=; b=DTUm1z5cAZFvSG3Xo7OZjPIImSmI7JdBqgH1bIxx//QzLuH5a+NMOHng9ak7ow+0UN /AR5XTFF2SBKppLT5yTQONeNcTjCevBw5DfyuIIg7+pNvnaiXJMktEIIm2WcRF5tP+xL b1UE442xGm34VJJQEv3jC0DQBvP1z3W6WI/D7Nv7HfqM8+dxks7RUEs3IGR5nA+nRDFc aDJ/y4Y/I5u0QA65Ey2fG7FKmEQjQZD/KDLj556snUQ3DdlyDK35ZK1S7r5tG2YB1EjO V6vQpO1IcZcmv4QDAs1oKhNZJxQIP043twkot3Zwc8G0nSB3xCncuq+fEm+uM8sSg56N sxxQ== X-Gm-Message-State: AAQBX9fVvZ3jUvrk9G8X7jqXtTheuCnRa5dewsIFLxPU4wvCszA7oCKt d5s19sXBFIRkSi1MU07rVpw= X-Google-Smtp-Source: AKy350aErx63+9NVn8ozIEtTSOLPMXDp1bCPZnRIfdb79NI61TNTz3017lxAePmYCSNf5S9rSi7Q3g== X-Received: by 2002:a05:600c:ac4:b0:3f1:6ead:34fe with SMTP id c4-20020a05600c0ac400b003f16ead34femr7476577wmr.26.1681807155577; Tue, 18 Apr 2023 01:39:15 -0700 (PDT) Received: from localhost ([2a02:ed3:911:ee00:b62e:99ff:fef0:7bc0]) by smtp.gmail.com with ESMTPSA id y11-20020a056000108b00b002f013fb708fsm12588399wrw.4.2023.04.18.01.39.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Apr 2023 01:39:14 -0700 (PDT) Date: Tue, 18 Apr 2023 11:39:13 +0300 From: Efraim Flashner To: Mario Forzanini Cc: Rodrigo Morales , help-guix@gnu.org Subject: Re: Newbie: How to find all kernel modules that can be loaded? Message-ID: Mail-Followup-To: Mario Forzanini , Rodrigo Morales , help-guix@gnu.org References: <87cz4okgci.fsf@marioforzanini.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="tRF9zpp4Mdt+wvKU" Content-Disposition: inline In-Reply-To: <87cz4okgci.fsf@marioforzanini.com> X-PGP-Key-ID: 0x41AAE7DCCA3D8351 X-PGP-Key: https://flashner.co.il/~efraim/efraim_flashner.asc X-PGP-Fingerprint: A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Received-SPF: pass client-ip=2a00:1450:4864:20::330; envelope-from=efraim.flashner@gmail.com; helo=mail-wm1-x330.google.com X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, RCVD_IN_DNSWL_NONE=-0.0001, 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: 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-Country: US X-Migadu-Flow: FLOW_IN ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b="Z/A5fhY/"; 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=1681807188; a=rsa-sha256; cv=none; b=U11ona2BdsRJE0wRzhO3aicXRkZdE/QdT6uVXntv32KE5+3j0Ngf847GUTQmD/9ItGudSS JT9IMvqm7wmLpxQVbANm8u72iTaac/8zX9gbMn2LfpMaRWi12K+e26d7oF5EgjJoBHzriW rka8dFm4Tzt4CPrKpILshYP9UTZVVJIxrGgTmx5NtU3PaP+dJi6ff0zb4f2pgEw1/bWXeL HfnBTZqdUwJ9aRI1f4FXDDeAzpRprrkTbbqQVmrJlOG2WcK+J7xelE9TagOIuyeRvOGFL0 jYqyUioxTnvnNd/FVfoD8Zas+u6UcXHaPy4WZGlM1LjInfiLQ1gPl9WMqvCsEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1681807188; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=0XJJwoLKYB95xh5lGAbBzj9/QpKhUX+wNiGS9kCq1/8=; b=dlDTy5aOGMM9WCUawWa3CXnkOK7xlOW0lpDlbuLWgQjqptbbaTq1I3Cfk7hIYkoA499Qgp iyyCiP4vTxxzkrSr6A2OVrznlgxVPUY+CgWptVI1F/dYa2kfwvQndMsNm5MBF7qTh7Z0ht olWCJsq4u9Sn8Iko7Y4Hywz12OSkb1iRYAl+nIopDChXXA66ns6DKf9jfKBGa56nU8gk8s LTVIYLJfjW76jruI5PPxMAUNBNHiDGCvro4o6x97fxAwXSxPrLaHfTblstwwj1878nyKla W5WX8eXJR6d0nn7CMtsKs9zY3b7rApIkvmiwc3DU63PPSyI+qh95QhQlbkI/3w== X-Migadu-Spam-Score: 1.89 X-Spam-Score: 1.89 X-Migadu-Queue-Id: B77492A55D X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b="Z/A5fhY/"; 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: WmcyWahA5qw5 --tRF9zpp4Mdt+wvKU Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Mar 31, 2023 at 06:58:37PM +0200, Mario Forzanini wrote: > Rodrigo Morales writes: > > I want to know all the modules that are available on my system so that I > > can add them to kernel-module-loader-service-type. I'm a newbie when it > > comes to kernel modules, so I'm not even aware if all of them have a un= ique > > extension. If that's the case, a simple `find /gnu/store -type f -name > > '*.<>' should find them. > > > > I have two questions: > > > > * Are kernel modules defined in unique files? If that's the case, do al= l of > > them have a unique extension? >=20 > Yes they should all be object files with extensions '*.ko' or '*.o', and > in more conventional linux systems they are all under /lib/modules. On > Guix I can find them gzipped under > /run/current-system/kernel/lib/modules, so something like this lists a > bunch of modules: >=20 > =E2=94=8C(18:56:30)=20 > =E2=94=94(~) % find /run/current-system/kernel/lib/modules -name '*.ko.gz= ' -or -name '*.o.gz' >=20 > This works on my system but YMMV >=20 > > * Besides using `find` (assuming each kernel module exists in separated > > files), do you know another way to find all kernel modules that exist > > locally and that could be enabled? >=20 > Well the lsmod(8) man page lists a lot of utilities to gain info about > kernel modules, but they may not work because they look for them in > /lib/modules, e.g. >=20 > =E2=94=8C(18:56:44)=20 > =E2=94=94(~) % depmod -av > depmod: ERROR: could not open directory /lib/modules/6.2.7: No such file = or directory > depmod: FATAL: could not search modules: No such file or directory A little late on the reply, but you can work around this with the -b/--basedir flag depmod -av -b /run/current-system/kernel --=20 Efraim Flashner =D7=90=D7=A4=D7=A8=D7=99=D7=9D = =D7=A4=D7=9C=D7=A9=D7=A0=D7=A8 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --tRF9zpp4Mdt+wvKU Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAmQ+Vy4ACgkQQarn3Mo9 g1EDqA//SB8hENoDysE6EyFyTJsVZQKmLobm53+7AzQB2aarVKgxJzdhUmAL9xTf NfM3/CAr2mVRBuyOGkAwTutmbHmPGZZZQSsqQD9d6GGsLoEw2MVmmqz4kvkkt2zA E+5ASEZC3qNGjRuVtaBk0RErCekkrlA0mDJlwD8/eqq6yRjAn8Tz6iQmWIx2rEsN 7+p+O97Ph3ezmYqsDtnoZwj706wOni+2gRBKIerChtIpoIqik6kIQIyagMovUZGD db9mWYDxZ7qKvJXMdxr9euAc2+Yp+25spoGaeu8LIolZ9w5ICJGl1/Tnza4B+5OI oqhT653gY/wTuV9cjQcsc3e740ZicqN9BzAGeHcgioVNyOS7r+CB38AXM/fN6pic 2fT15c+BIUnuvCqkWCS2+4bGE+kGQ1PFeDUU5ONFdEhjB67qJqf9+HoVOnGlzgQS 7WblySwwx8FkQjl16vJBxciDNoLFIk7ljGYRNSX2n5tAVhwIjtqWGduEWk/G3xa2 UkTmvYAcHMY2PCNXkgJ504yVIrg7ujPRbHQCf3XEaWhQOBMBBWk4AUBfbJEoUALA /2X9mvU91SsuQgppov2erMT/6WOfA0aQypJ4m/kU8dVyCRWQRWOnMCFOCOkjuBFV eMdOwMB8yboPWAqzoPJIhvJ8vjTY22wlGogAWSZLizcyo+3UCYU= =83fj -----END PGP SIGNATURE----- --tRF9zpp4Mdt+wvKU--