Merge pull request #4108 from HiassofT/le10-init-drop-module-load

init: drop support for loading modules in initramfs
This commit is contained in:
MilhouseVH 2020-01-19 19:26:34 +00:00 committed by GitHub
commit a87d710d6e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 \