couldplug happening before modules.d

Luiz Angelo Daros de Luca luizluca at gmail.com
Thu Sep 30 13:30:24 PDT 2021


Hello,

I'm trying to mount a USB storage device using hotplug.d/block.
However, it never works during boot because "hotplug.d/block" is
triggered before modules.d are loaded. It only works if the filesystem
was already loaded by modules-boot.d (normally ext4).

I'm manually loading all fs modules before "mount" with something like:

for fsmods in /etc/modules.d/*-fs-*; do
        while read -r fsmod; do
                modprobe $fsmod
        done <$fsmods
done
mount ...

But shouldn't it work "by design"?

It used to work in the past, maybe in the "18.06 era".

Regards,
---
     Luiz Angelo Daros de Luca
            luizluca at gmail.com



More information about the openwrt-devel mailing list