commit:     96b11d121cab23d105928fd9bb1987defd741704
Author:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
AuthorDate: Wed Nov 27 16:11:50 2019 +0000
Commit:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
CommitDate: Wed Nov 27 16:11:50 2019 +0000
URL:        https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=96b11d12

initrd.scripts: start_network(): Use modules_scan()

Using modules_scan() instead of load_modules() will prevent output
of multiple "Loading modules ..." lines.

Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>

 defaults/initrd.scripts | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/defaults/initrd.scripts b/defaults/initrd.scripts
index a81632c..11b529b 100644
--- a/defaults/initrd.scripts
+++ b/defaults/initrd.scripts
@@ -1906,9 +1906,11 @@ iface_name() {
 }
 
 start_network() {
+       good_msg "Starting network ..."
+
        # Load network modules only when we need them to avoid possible
        # firmware problems for people not using network that early
-       MY_HWOPTS=net load_modules
+       modules_scan net
 
        # At least gk.net.iface can only be processed after sysfs was
        # mounted.

Reply via email to