mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-08-02 23:47:49 +00:00
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 <hias@horus.com>
This commit is contained in:
parent
f59b99ca25
commit
9b10ad20d5
@ -23,9 +23,6 @@
|
|||||||
/usr/bin/busybox mount -t proc proc /proc
|
/usr/bin/busybox mount -t proc proc /proc
|
||||||
/usr/bin/busybox mount -t sysfs sysfs /sys
|
/usr/bin/busybox mount -t sysfs sysfs /sys
|
||||||
|
|
||||||
# set needed variables
|
|
||||||
MODULE_DIR=/usr/lib/modules
|
|
||||||
|
|
||||||
UPDATE_ROOT=/storage/.update
|
UPDATE_ROOT=/storage/.update
|
||||||
UPDATE_DIR="$UPDATE_ROOT"
|
UPDATE_DIR="$UPDATE_ROOT"
|
||||||
|
|
||||||
@ -358,16 +355,6 @@ update_bootloader() {
|
|||||||
fi
|
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() {
|
set_consolefont() {
|
||||||
local vres
|
local vres
|
||||||
|
|
||||||
@ -1092,7 +1079,6 @@ debug_msg "Unique identifier for this client: ${MACHINE_UID:-NOT AVAILABLE}"
|
|||||||
|
|
||||||
# main boot sequence
|
# main boot sequence
|
||||||
for BOOT_STEP in \
|
for BOOT_STEP in \
|
||||||
load_modules \
|
|
||||||
set_consolefont \
|
set_consolefont \
|
||||||
check_disks \
|
check_disks \
|
||||||
mount_flash \
|
mount_flash \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user