linuxrc: add depmod call as workaround for missing modules.dep.bb

busybox depmod -b is broken, and busybox modprobe does not seem
to correctly deal with module dependencies.
See bug #472312
master v14
Fabio Erculiani 12 years ago
parent 4b4d3f6d3e
commit ece907ea64

@ -109,6 +109,22 @@ plymouth_newroot() {
is_plymouth_started && "${PLYMOUTH_BIN}" --newroot="${1}" is_plymouth_started && "${PLYMOUTH_BIN}" --newroot="${1}"
} }
# We should ship the initramfs with modules.dep.bb
# But current busybox depmod has broken -b support
# so we can't do that at build time, unless we want
# to chroot into the initramfs root, which is much more
# fragile. See bug #472312
busybox_depmod_workaround() {
local depmod_args
if [ -n "${DEBUG}" ]
then
depmod_args="-v"
elif [ -n "${QUIET}" ]; then
depmod_args="-q"
fi
depmod ${depmod_args}
}
modules_load() { modules_load() {
for module in $* for module in $*
do do

@ -310,6 +310,13 @@ mount_devfs
# Mount sysfs # Mount sysfs
mount_sysfs mount_sysfs
# We should ship the initramfs with modules.dep.bb
# But current busybox depmod has broken -b support
# so we can't do that at build time, unless we want
# to chroot into the initramfs root, which is much more
# fragile. See bug #472312
busybox_depmod_workaround
# Setup hotplugging for firmware loading # Setup hotplugging for firmware loading
if is_udev if is_udev
then then

Loading…
Cancel
Save