]> err.no Git - systemd/commitdiff
use .conf for new config files: locale, vconsole, modules.d
authorKay Sievers <kay.sievers@vrfy.org>
Tue, 28 Sep 2010 09:51:24 +0000 (11:51 +0200)
committerKay Sievers <kay.sievers@vrfy.org>
Tue, 28 Sep 2010 09:51:24 +0000 (11:51 +0200)
fixme
src/locale-setup.c
src/modules-load.c
src/vconsole-setup.c

diff --git a/fixme b/fixme
index f66f07a0369c928bf553604adaf30b85c2041639..9e283f5a21d8c6545fdab89ae11d25fe73ae7d57 100644 (file)
--- a/fixme
+++ b/fixme
@@ -99,8 +99,6 @@
 
 * s/tempfiles/volatile-files/
 
-* use .conf suffix for locale/vconsole/...
-
 External:
 
 * place /etc/inittab with explaining blurb.
index 78fa2123f8e23f4edfa124223571430965de95d3..ffb4ee999e34965e538a8657e086ec29fab79268 100644 (file)
@@ -93,9 +93,9 @@ int locale_setup(void) {
         }
 
         /* Hmm, nothing set on the kernel cmd line? Then let's
-         * try /etc/locale */
+         * try /etc/locale.conf */
         if (r <= 0 &&
-            (r = parse_env_file("/etc/locale", NEWLINE,
+            (r = parse_env_file("/etc/locale.conf", NEWLINE,
                                "LANG",              &variables[VARIABLE_LANG],
                                "LC_CTYPE",          &variables[VARIABLE_LC_CTYPE],
                                "LC_NUMERIC",        &variables[VARIABLE_LC_NUMERIC],
@@ -112,7 +112,7 @@ int locale_setup(void) {
                                 NULL)) < 0) {
 
                 if (r != -ENOENT)
-                        log_warning("Failed to read /etc/locale: %s", strerror(-r));
+                        log_warning("Failed to read /etc/locale.conf: %s", strerror(-r));
         }
 
 #ifdef TARGET_FEDORA
index bfe5b8a995e3f9f866a10f162374acfcb5258db6..56f2a907f4cc2a68a7450078c24b4faacd688052 100644 (file)
@@ -31,7 +31,7 @@
 #include "util.h"
 #include "strv.h"
 
-/* This reads all module names listed in /etc/modules.d/?*.modules and
+/* This reads all module names listed in /etc/modules.d/?*.conf and
  * loads them into the kernel. This follows roughly Debian's way to
  * handle modules, but uses a directory of fragments instead of a
  * single /etc/modules file. */
@@ -46,7 +46,7 @@ static int scandir_filter(const struct dirent *d) {
             d->d_type != DT_LNK)
                 return 0;
 
-        return endswith(d->d_name, ".modules");
+        return endswith(d->d_name, ".conf");
 }
 
 int main(int argc, char *argv[]) {
index 047a153b87d38b877eceabd8dae83c3063e5a46a..9e5d65da657ecfbb4d7664673a24b6fc86145be5 100644 (file)
@@ -186,9 +186,9 @@ int main(int argc, char **argv) {
         }
 
         /* Hmm, nothing set on the kernel cmd line? Then let's
-         * try /etc/vconsole */
+         * try /etc/vconsole.conf */
         if (r <= 0 &&
-            (r = parse_env_file("/etc/vconsole", NEWLINE,
+            (r = parse_env_file("/etc/vconsole.conf", NEWLINE,
                                 "KEYMAP", &vc_keymap,
                                 "FONT", &vc_font,
                                 "FONT_MAP", &vc_font_map,
@@ -196,7 +196,7 @@ int main(int argc, char **argv) {
                                 NULL)) < 0) {
 
                 if (r != -ENOENT)
-                        log_warning("Failed to read /etc/vconsole: %s", strerror(-r));
+                        log_warning("Failed to read /etc/vconsole.conf: %s", strerror(-r));
         }
 
         if (r <= 0) {