From 9b10ad20d54d906f3d4143ad21bd89d801f82b8d Mon Sep 17 00:00:00 2001 From: Matthias Reichl Date: Fri, 10 Jan 2020 15:08:15 +0100 Subject: [PATCH] init: drop support for loading modules in initramfs Support for modules in initramfs was removed more than half a year ago but I forgot to remove the now useless load_modules function in init. Signed-off-by: Matthias Reichl --- packages/sysutils/busybox/scripts/init | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/packages/sysutils/busybox/scripts/init b/packages/sysutils/busybox/scripts/init index a5010d45ab..57181c1804 100755 --- a/packages/sysutils/busybox/scripts/init +++ b/packages/sysutils/busybox/scripts/init @@ -23,9 +23,6 @@ /usr/bin/busybox mount -t proc proc /proc /usr/bin/busybox mount -t sysfs sysfs /sys -# set needed variables -MODULE_DIR=/usr/lib/modules - UPDATE_ROOT=/storage/.update UPDATE_DIR="$UPDATE_ROOT" @@ -358,16 +355,6 @@ update_bootloader() { fi } -load_modules() { - progress "Loading kernel modules" - - [ ! -f "/etc/modules" ] && return - for module in $(cat /etc/modules); do - progress "Loading kernel module $module" - insmod "$MODULE_DIR/$module.ko" || progress "... Failed to load kernel module $module, skipping" - done -} - set_consolefont() { local vres @@ -1092,7 +1079,6 @@ debug_msg "Unique identifier for this client: ${MACHINE_UID:-NOT AVAILABLE}" # main boot sequence for BOOT_STEP in \ - load_modules \ set_consolefont \ check_disks \ mount_flash \