openrc/init.d
Lars Wendler 0d86c4903b init.d/modules.in: Avoid loading modules twice in Linux with dash shell
Since commit 6b475ab269, 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.
2021-05-12 18:20:43 -05:00
..
.gitignore Create save-keymaps and save-ktermencoding services 2018-11-07 08:55:44 -06:00
Makefile Create save-keymaps and save-ktermencoding services 2018-11-07 08:55:44 -06:00
adjkerntz.in update dependencies for clock service 2017-03-16 10:16:39 -05:00
agetty.in init.d/agetty: provide the getty virtual service 2019-07-29 17:39:11 -05:00
binfmt.in update dependencies for clock service 2017-03-16 10:16:39 -05:00
bootmisc.in bootmisc: allow sysvinit compatibility during shutdown 2020-11-27 15:18:57 -06:00
cgroups.in fix unified cgroups v2 setup 2021-02-23 23:08:56 -06:00
consolefont.in Remove localmount from dependencies for linux-only services 2018-05-07 18:12:55 -05:00
devd.in Convert OpenRC to a centralized copyright/license structure 2015-12-21 12:16:06 -06:00
devdb.in update dependencies for clock service 2017-03-16 10:16:39 -05:00
devfs.in allow devfs to run on lxc 2021-01-28 12:32:09 -06:00
dmesg.in init.d: initial service adjustments for docker support 2016-07-31 13:01:17 -05:00
dumpon.in update dependencies for clock service 2017-03-16 10:16:39 -05:00
encswap.in Rename runscript to openrc-run 2013-12-29 22:57:31 -06:00
fsck.in update dependencies for clock service 2017-03-16 10:16:39 -05:00
hostid.in update dependencies for clock service 2017-03-16 10:16:39 -05:00
hostname.in hostname: replace @SYSCONFDIR@ references with /etc 2017-12-14 17:07:31 -06:00
hwclock.in hwclock: use shell variables for configuration file path 2017-12-14 16:38:09 -06:00
ipfw.in Convert OpenRC to a centralized copyright/license structure 2015-12-21 12:16:06 -06:00
keymaps.in Create save-keymaps and save-ktermencoding services 2018-11-07 08:55:44 -06:00
killprocs.in Change killprocs to use kill_all instead of killall5 2017-05-30 18:48:33 -05:00
local.in local: misc cleanups 2017-12-14 12:52:03 -06:00
localmount.in adjust mtab and localmount dependencies 2017-11-14 13:20:49 -06:00
loopback.in update dependencies for clock service 2017-03-16 10:16:39 -05:00
mixer.in Convert OpenRC to a centralized copyright/license structure 2015-12-21 12:16:06 -06:00
modules.in init.d/modules.in: Avoid loading modules twice in Linux with dash shell 2021-05-12 18:20:43 -05:00
mount-ro.in init.d/mount-ro: change dependency on killprocs and savecache to after 2017-03-31 13:39:42 -05:00
moused.in Convert OpenRC to a centralized copyright/license structure 2015-12-21 12:16:06 -06:00
mtab.in strongly encourage Linux users to not make /etc/mtab a flat file 2017-11-14 15:41:03 -06:00
net-online.in net-online: fix process of symlinks in sysfs 2020-12-22 12:49:48 -06:00
netmount.in make sure netmount and localmount start after root 2017-02-28 17:44:06 -06:00
network.in network: use 'command -v ip' to test for the ip executable 2017-12-12 14:23:04 -06:00
newsyslog.in update dependencies for clock service 2017-03-16 10:16:39 -05:00
nscd.in Convert OpenRC to a centralized copyright/license structure 2015-12-21 12:16:06 -06:00
numlock.in numlock: Don't disable numlock on shutdown 2021-03-19 10:36:31 -05:00
osclock.in Remove warning when osclock init.d script runs 2020-11-27 18:06:38 -06:00
pf.in Convert OpenRC to a centralized copyright/license structure 2015-12-21 12:16:06 -06:00
powerd.in Convert OpenRC to a centralized copyright/license structure 2015-12-21 12:16:06 -06:00
procfs.in Remove localmount from dependencies for linux-only services 2018-05-07 18:12:55 -05:00
rarpd.in Convert OpenRC to a centralized copyright/license structure 2015-12-21 12:16:06 -06:00
rc-enabled.in Convert OpenRC to a centralized copyright/license structure 2015-12-21 12:16:06 -06:00
root.in update dependencies for clock service 2017-03-16 10:16:39 -05:00
rpcbind.in Convert OpenRC to a centralized copyright/license structure 2015-12-21 12:16:06 -06:00
runsvdir.in Add support for runit 2016-07-27 16:26:26 -05:00
s6-svscan.in Convert OpenRC to a centralized copyright/license structure 2015-12-21 12:16:06 -06:00
save-keymaps.in Create save-keymaps and save-ktermencoding services 2018-11-07 08:55:44 -06:00
save-termencoding.in Create save-keymaps and save-ktermencoding services 2018-11-07 08:55:44 -06:00
savecache.in Revert "savecache: stop saving the dependency tree" 2018-05-11 11:54:48 -05:00
savecore.in update dependencies for clock service 2017-03-16 10:16:39 -05:00
staticroute.in typo fix 2017-10-10 10:56:27 -05:00
swap-blk.in update dependencies for clock service 2017-03-16 10:16:39 -05:00
swap.in init.d: swap should always be started after root 2018-03-05 20:16:26 -05:00
swclock.in update dependencies for clock service 2017-03-16 10:16:39 -05:00
syscons.in update dependencies for clock service 2017-03-16 10:16:39 -05:00
sysctl.in sysctl: hard code paths for sysctl files on *bsd 2017-12-14 14:18:39 -06:00
sysfs.in Stop mounting efivarfs read-only 2018-08-14 10:21:27 -05:00
syslogd.in update dependencies for clock service 2017-03-16 10:16:39 -05:00
termencoding.in Create save-keymaps and save-ktermencoding services 2018-11-07 08:55:44 -06:00
ttys.in update dependencies for clock service 2017-03-16 10:16:39 -05:00
urandom.in update dependencies for clock service 2017-03-16 10:16:39 -05:00
wscons.in update dependencies for clock service 2017-03-16 10:16:39 -05:00