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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id B47A313832E for ; Wed, 17 Aug 2016 21:39:42 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 699DFE0B7E; Wed, 17 Aug 2016 21:39:33 +0000 (UTC) Received: from omr-m018e.mx.aol.com (omr-m018e.mx.aol.com [204.29.186.17]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 6D171E0B75 for ; Wed, 17 Aug 2016 21:39:32 +0000 (UTC) Received: from mtaout-aan01.mx.aol.com (mtaout-aan01.mx.aol.com [172.27.19.77]) by omr-m018e.mx.aol.com (Outbound Mail Relay) with ESMTP id 73BCF3800099 for ; Wed, 17 Aug 2016 17:39:31 -0400 (EDT) Received: from [192.168.1.52] (0x5b3139322e3136382e312e35325d [71.122.242.106]) by mtaout-aan01.mx.aol.com (MUA/Third Party Client Interface) with ESMTPA id 6185138000083; Wed, 17 Aug 2016 17:39:30 -0400 (EDT) Subject: Re: [gentoo-dev] rfc: openrc using modprobe directly to load kernel modules To: gentoo-dev@lists.gentoo.org References: <20160817165456.GA9360@whubbs1.gaikai.biz> From: james Message-ID: Date: Wed, 17 Aug 2016 17:39:29 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 In-Reply-To: <20160817165456.GA9360@whubbs1.gaikai.biz> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit x-aol-global-disposition: G x-aol-sid: 3039ac1b134d57b4d99268b8 X-AOL-IP: 71.122.242.106 X-Archives-Salt: 8b8e1fa9-2b1a-486c-8cda-2c9d83f72108 X-Archives-Hash: e3333234faf363424c940834ce050f95 On 08/17/2016 12:54 PM, William Hubbs wrote: > All, > > I'm starting this thread because of the bug I'm citing below [1]. > > The issue is that some systems do not use kernel modules, and do not > have kmod installed at all. Since we run modprobe unconditionally in a > few places in OpenRC, we always generate "modprobe: command not found" > errors on systems which are set up like this. > > If you read the bug, the proposed fixes have been a bit controversial in > the past. Since we have the "want" dependency now, I would like to > propose a different fix. > > 1. all of the current openrc services that use modprobe should have > "want modules" in their dependencies. > 2. After this is done, these services should still attempt to load the > modules if necessary, but they should complain to the user about it and > recommend either building these modules in or using /etc/conf.d/modules > to configure them so they are loaded by the modules service. > 3. Then, at some point in the future, OpenRC could remove the modprobe > commands. > > Thoughts? > > William > > [1] https://bugs.gentoo.org/show_bug.cgi?id=342313 > As a gentoo user, developing a gentoo framework for rapid and frequent (and yes unattended installs) on heterogeneous gentoo clusters, I think Comment 8 says it all, repeat here for convenience:: Comment 8 "There are people for which having module-init-tools is just a waste of space/time/build; we force it already enough with the profile, you don't want to test for it everywhere, you don't want to hide output, tell me what you want, so I can make it, but I don't want module-init-tools forced in on LXC/xen/monolithic installs." +1, I rarely use loadable kernel modules, for my cluster builds. In fact I migrating to a large variety of complete stage-4 images for gentoo clusters, that are very use specific, highly tuned and minimized, including openrc, the base profile and old codes necessary for the work at hand, for the target hardware node. hth, James