modprobe,depmod: deprecate "include", sort config files, warn if they miss .conf
commit50f21358cf9937906f42be1352ba2b588375a344
authorKay Sievers <kay.sievers@vrfy.org>
Mon, 2 Mar 2009 12:59:29 +0000 (2 13:59 +0100)
committerKay Sievers <kay.sievers@vrfy.org>
Mon, 2 Mar 2009 12:59:29 +0000 (2 13:59 +0100)
tree8754d4bed9f2c66c0e005f523b84fc1be236e117
parent803b0779d04e01dd80e6e6ea50b4acd7fa2602ad
modprobe,depmod: deprecate "include", sort config files, warn if they miss .conf

The "include" directive causes a warning now, because it should not be
used anymore. All user-supplied config file belong into the single
directories /etc/modprobe.d/ and /etc/depmod.d/ and nowhere else.
This allows tools like mkinitramfs to find all files without the current
pain.

Any include directives for /etc/modprobe.d/ and /etc/depmod.d/ themselves
are completely ignored now, they are the default and do not need any
configuration.

The existence of the file /etc/modprobe.conf, /etc/depmod.conf will
cause a warning now, and they should be moved to the single directories
/etc/modprobe.d/ and /etc/depmod.d/.

All /etc/modprobe.d/ and /etc/depmod.d/ files without a ".conf" extension
cause a warning now, the extension will be required in a future release
to make the "can-never-be-complete file name filter" obsolete, which tries
to filter left-over files from editors and package managers.

All files in /etc/modprobe.d/ and /etc/depmod.d/ are sorted alphabetically
now, before they are parsed, to produce predictable results and to no longer
depend on readdir() order.

If the config option "binary_indexes no" is given, all possible ".bin"
files are properly ignored now.

The tests have been updated not to use "include", but put all files
in /etc/modprobe.d/ and have a .conf entension.
21 files changed:
depmod.c
list.h
modprobe.c
tests/test-modprobe-indexed/03underscores.sh
tests/test-modprobe-indexed/10alias.sh
tests/test-modprobe/03underscores.sh
tests/test-modprobe/04config.sh
tests/test-modprobe/07wildalias.sh
tests/test-modprobe/09configerrors.sh
tests/test-modprobe/10alias.sh
tests/test-modprobe/12whitespace.sh
tests/test-modprobe/13dryrun.sh
tests/test-modprobe/15env.sh
tests/test-modprobe/16showdepends.sh
tests/test-modprobe/19quiet.sh
tests/test-modprobe/21wildinstall.sh
tests/test-modprobe/22recursiveinstall.sh
tests/test-modprobe/24modprobe.conf-dir.sh [deleted file]
tests/test-modprobe/25locking.sh
tests/test-modprobe/26blacklist.sh
tests/test-modprobe/27cmdline-install-remove.sh