From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id IGtoG3URJ2RDgQEASxT56A (envelope-from ) for ; Fri, 31 Mar 2023 18:59:33 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id eA9nG3URJ2ThbgAA9RJhRA (envelope-from ) for ; Fri, 31 Mar 2023 18:59:33 +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 2FDD2113F2 for ; Fri, 31 Mar 2023 18:59:33 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1piI5a-0005r3-JE; Fri, 31 Mar 2023 12:58:58 -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 1piI5X-0005qm-NI for help-guix@gnu.org; Fri, 31 Mar 2023 12:58:55 -0400 Received: from marioforzanini.com ([2a05:f480:1c00:436:5400:4ff:fe01:c56f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1piI5V-00033X-1e for help-guix@gnu.org; Fri, 31 Mar 2023 12:58:54 -0400 From: Mario Forzanini DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=marioforzanini.com; s=mail; t=1680281928; bh=50xWpcvXIX5zAqb/uQQkSJoWW3bHLh3iaMPWObIEQ7s=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=V4QGJwDMTOldZ/klktnwnPfYxR3vZW7T80UMKeFmahjcTVIS8g015H/SpH/dyNxi3 VmY/uVn1k4atcSL0a9rJcx9s44dRudmBMc7DClzzF6uYoQLoR9oq1+CUy7L4UfuKYx oUQBD6FC+PSJiOhj4UEAZDbwzLu0EKmo/i0M4pYLeeO84eQXvTkfa7mUn0/km3mkT2 X9Y6HFpuB/JUH7e9AKLh0C/SBmUS9A32OF1d6sMkWHtpPh3WEw+i3XO+fni/a/0qWc y8rSB5gCkTsdA0hjuHj8R7UY4kF2mUtrpRct5m3eAaWatz3hJlql3LZc/KJUpxaEwx F9ooaIX4gRPvQ== To: Rodrigo Morales Cc: help-guix@gnu.org Subject: Re: Newbie: How to find all kernel modules that can be loaded? In-Reply-To: (Rodrigo Morales's message of "Fri, 31 Mar 2023 16:37:18 +0000") References: User-Mail-Address: mf@marioforzanini.com Date: Fri, 31 Mar 2023 18:58:37 +0200 Message-ID: <87cz4okgci.fsf@marioforzanini.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: none client-ip=2a05:f480:1c00:436:5400:4ff:fe01:c56f; envelope-from=mf@marioforzanini.com; helo=marioforzanini.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, 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-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1680281973; a=rsa-sha256; cv=none; b=Ij//Sa+YVrjcdSmtZlFdr4HUannN5EQ5iv0yFdKSxcVt081maLbXGXH3SufCpbXEuUG5Vp ulSXzwmgZbcGlDbODaqk474TSqu3dzttNOC0obcfEsuosnlO1XH/HID4jfRyEGDWG92czX satZpCBIFLT0/iukqu9aQGtWFirbzIbS62njvBXye8fkHEDszDSkWpg24YYOYbg1b5S/Bu 7Ih4zzeygWJnbe5udY/x44WJOtnT1sTdpnW8vJFk9A/PLug21BCbqtgqfjC1fs3516p8En s3XLvdXGJv+3rPvmpNcU2XS+vgP58nwou5Mz9DCBT8yQz/8dOjIbKYI4IeZ7Lw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=marioforzanini.com header.s=mail header.b=V4QGJwDM; dmarc=pass (policy=reject) header.from=marioforzanini.com; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1680281973; 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=50xWpcvXIX5zAqb/uQQkSJoWW3bHLh3iaMPWObIEQ7s=; b=sPRVuO3kNbXNJtzYCuSV6Ti231XaVWXzhvt8IoKp8ctUpWeGBQgT4g0DaKRdc01/Wyl+mX 6WVJHnv4qIqiHFoJYrfk97K7fXn4T5J15ktF+cebfjQVTS5fk4Qxeu6JvFXc9dOwCZwCZ1 3qfhkbOuprymJT53rDJzCj9/9deDmeH2qUe6JVZQ14uV0UZniAibQxKhAgSxIMVAuB0XfT J+FPTFSUJWqwxYNk1cr1IteEp9SMDUnVSSMMflJmNb0NWOgHtEWV1zyEyBqLto1kPiwaTV iMSFknoctZE84CeUIcUMq3NWdZ9JbGiNt97gqcLq35vwbAvFgEYCScHB35OEVA== X-Migadu-Spam-Score: -3.22 X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=marioforzanini.com header.s=mail header.b=V4QGJwDM; dmarc=pass (policy=reject) header.from=marioforzanini.com; 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" X-Spam-Score: -3.22 X-Migadu-Queue-Id: 2FDD2113F2 X-TUID: 8Yj/hZuKImXQ 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 uniq= ue > 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 all = of > them have a unique extension? 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: =E2=94=8C(18:56:30)=20 =E2=94=94(~) % find /run/current-system/kernel/lib/modules -name '*.ko.gz' = -or -name '*.o.gz' This works on my system but YMMV > * 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? 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. =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 --=20 Mario