]> code.ossystems Code Review - openembedded-core.git/commit
modutils-initscripts: Fix modules.dep creation when USE_DEPMOD="0"
authorDiego Sueiro <diego.sueiro@arm.com>
Thu, 3 Dec 2020 11:18:13 +0000 (11:18 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 6 Dec 2020 23:16:50 +0000 (23:16 +0000)
commit572f3045faa0a937947fbd56bcfef7bad55e9da6
treea2e7d54517b11311f13724a16b52fa2719a5939f
parenta2bf422cc498bebfbeedc9382b2cc1533f78bbfd
modutils-initscripts: Fix modules.dep creation when USE_DEPMOD="0"

When having USE_DEPMOD="0" it is expected that in the first boot that
the modules.dep is generated. To achieve this we need to check if
modules.dep exists and has a size greater than zero. This verification
also needs to be done regardless of whether the /etc/modules or
/etc/modules-load.d directories exist.

Signed-off-by: Diego Sueiro <diego.sueiro@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-kernel/modutils-initscripts/files/modutils.sh