From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-user+bounces-181395-garchives=archives.gentoo.org@lists.gentoo.org> 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 699A4139083 for <garchives@archives.gentoo.org>; Thu, 14 Dec 2017 20:46:27 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 28597E1113; Thu, 14 Dec 2017 20:46:21 +0000 (UTC) Received: from km35626.keymachine.de (km35626.keymachine.de [87.118.86.27]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B79E2E1067 for <gentoo-user@lists.gentoo.org>; Thu, 14 Dec 2017 20:46:20 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by km35626.keymachine.de (Postfix) with ESMTP id 13E8A1125A5C for <gentoo-user@lists.gentoo.org>; Thu, 14 Dec 2017 21:46:19 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at km35626.keymachine.de. Received: from km35626.keymachine.de ([127.0.0.1]) by localhost (km35626.keymachine.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ImwzNdUQCbpk for <gentoo-user@lists.gentoo.org>; Thu, 14 Dec 2017 21:46:17 +0100 (CET) Received: from grusum.endjinn.de (p2E5B51C5.dip0.t-ipconnect.de [46.91.81.197]) by km35626.keymachine.de (Postfix) with ESMTPSA id 254191125A4C for <gentoo-user@lists.gentoo.org>; Thu, 14 Dec 2017 21:46:17 +0100 (CET) Received: by grusum.endjinn.de (Postfix, from userid 500) id 61CBE17036B; Thu, 14 Dec 2017 21:30:26 +0100 (CET) Date: Thu, 14 Dec 2017 21:30:52 +0100 From: David Haller <gentoo@dhaller.de> To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] openrc : autoload kernel modules Message-ID: <20171214203052.bmvxkj7wudt4l3my@grusum.endjinn.de> Mail-Followup-To: gentoo-user@lists.gentoo.org References: <JVE2CN25.XNPAGVSC.I2BGB3TI@WZY5PJX3.XCJ74CAL.WT5ATBVY> <5d127de0-72fd-4f01-bef3-17aefa37158b@gentoo.org> Precedence: bulk List-Post: <mailto:gentoo-user@lists.gentoo.org> List-Help: <mailto:gentoo-user+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-user+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-user+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-user.gentoo.org> X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <5d127de0-72fd-4f01-bef3-17aefa37158b@gentoo.org> Organization: What? X-Clacks-Overhead: GNU Terry Pratchett User-Agent: NeoMutt/20170609 (1.8.3) X-Archives-Salt: 214d23a3-a86b-4fac-a8b0-cf0adf92295a X-Archives-Hash: eeea2bb020145278755f4e3da21957d5 Hello, On Thu, 14 Dec 2017, Michael Orlitzky wrote: >On 12/14/2017 12:43 PM, Helmut Jarausch wrote: >>=20 >> I have added the following lines to=A0 /etc/conf.d/modules >>=20 >> modules=3D"enhanceio" >> modules=3D"enhanceio_lru" >> modules=3D"enhanceio_fifo" >> modules=3D"enhanceio_rand" >>=20 > >"modules" is a variable name, and it's being overwritten on each line. >The /etc/init.d/modules script does something like > > for module in $modules; do > load $module > done > >but in your case, "modules" will contain only the last thing you set it >to, namely modules=3D"enhanceio_rand". Does openrc-run (or the old way) support adding to strings? I.e.: =3D=3D=3D=3D modules+=3D" foo" modules+=3D" bar" =3D=3D=3D=3D or must one use =3D=3D=3D=3D modules=3D"${modules} foo" modules=3D"${modules} bar" =3D=3D=3D=3D or must it even be one single string? Does that support embedded linebreaks? I think this should be documented better in the file. -dnh PS: I've had the opposite problem: modules automatically got loaded and I blacklisted them in /etc/modprobe.d/*.conf ;) --=20 I find all proselytisation to be misguided at least. The way I see it, it's not the Enlightened or the Chosen trying to save me or anyone, but just some meme trying to survive in the great war for brain real estate. -- Maarten Wiltink