]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
core/kmod-setup: restore comments
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 6 Jul 2018 09:51:04 +0000 (11:51 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 6 Jul 2018 09:51:24 +0000 (11:51 +0200)
They were removed in 7491e6e7c5fcb3c445a0656a440bd1551adb6ba1, but the
original version is more informative. Let's add them back.

src/core/kmod-setup.c

index 9251929558ae8e86621b2b3bbaba2b181ed5a34b..b8292e77fd67649b9fde0546f3808924b6f444c0 100644 (file)
@@ -76,13 +76,15 @@ int kmod_setup(void) {
                 bool warn_if_module:1;
                 bool (*condition_fn)(void);
         } kmod_table[] = {
-                /* auto-loading on use doesn't work before udev is up */
+                /* This one we need to load explicitly, since auto-loading on use doesn't work
+                 * before udev created the ghost device nodes, and we need it earlier than that. */
                 { "autofs4",   "/sys/class/misc/autofs",    true,   false,   NULL      },
 
-                /* early configure of ::1 on the loopback device */
+                /* This one we need to load explicitly, since auto-loading of IPv6 is not done when
+                 * we try to configure ::1 on the loopback device. */
                 { "ipv6",      "/sys/module/ipv6",          false,  true,    NULL      },
 
-                /* this should never be a module */
+                /* This should never be a module */
                 { "unix",      "/proc/net/unix",            true,   true,    NULL      },
 
 #if HAVE_LIBIPTC