diff options
author | Lars Wendler <polynomial-c@gentoo.org> | 2021-05-12 21:01:06 +0200 |
---|---|---|
committer | William Hubbs <w.d.hubbs@gmail.com> | 2021-05-12 18:20:43 -0500 |
commit | 0d86c4903bdc68d2d4704ab6c2d4fc8f2c054276 (patch) | |
tree | e438742fa2d68fd8c440060c69e94a22534088c8 /man/openrc-run.8 | |
parent | 791322d7fa9d5bbceed558258baeff51a39787c5 (diff) |
init.d/modules.in: Avoid loading modules twice in Linux with dash shell
Since commit 6b475ab26992f1dd8815700828df46abc4b71d27, openrc tries to load
modules twice which have been defined in /etc/conf.d/modules via modules=
variable when /bin/sh points to dash shell.
The reason is that when the "modules-load" service was merged into "modules"
service, the "modules" variable name got used in both, load_modules()
function and in Linux_modules() function which both get called when modules
service is started. Although "modules" variable is marked as local in
load_modules(), dash simply ignores this.
Avoid the issue by renaming "modules" variable to "_modules" in
load_modules() function.
This fixes #419.
Diffstat (limited to 'man/openrc-run.8')
0 files changed, 0 insertions, 0 deletions