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 A65B61381F1 for ; Wed, 17 Aug 2016 06:59:50 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 31D4321C0DF; Wed, 17 Aug 2016 06:59:36 +0000 (UTC) Received: from blaine.gmane.org (unknown [195.159.176.226]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 34F6221C012 for ; Wed, 17 Aug 2016 06:59:35 +0000 (UTC) Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1bZup2-0006YY-GJ for gentoo-dev@lists.gentoo.org; Wed, 17 Aug 2016 08:59:32 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-dev@lists.gentoo.org From: Martin Vaeth Subject: [gentoo-dev] Re: rfc: /etc/init.d/modules loading modules defined in files Date: Wed, 17 Aug 2016 06:59:25 +0000 (UTC) Message-ID: References: <20160816232009.GA16393@whubbs1.gaikai.biz> <87a8gctguf.fsf@kestrel.kyomu.43-1.org> <8760r0tgd7.fsf@kestrel.kyomu.43-1.org> <20160817001653.GB18485@linux1.gaikai.biz> X-Complaints-To: usenet@blaine.gmane.org User-Agent: slrn/pre1.0.0-26 (Linux) 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 X-Archives-Salt: 776c72fe-d03b-4532-b4d0-8a9a63da86fc X-Archives-Hash: ad19aea1a5a32216e404ca7e40225080 William Hubbs wrote: > > but I'm open to making the behaviour compatible > with what systemd does Since openrc already supports tmpfiles.d, support for modules-load.d would be natural. In fact, this is already done for quite a while in https://github.com/vaeth/firewall-mv/blob/master/openrc/conf.d/modules The last line supports modules-load.d: modules=$(sed -n -e '/^[^;#]/p' /etc/modules-load.d/*.conf \ /usr/lib/modules-load.d/*.conf 2>/dev/null || : ) For compatibility with other init systems one should perhaps not extend the format of modules-load.d: If one also wants to e.g. support args for modules, this should perhaps be done in a separate directory. /etc/modprobe.d already exists for this, but one might still source another directory which contains only files added to /etc/conf.d/modules