archcrypto="$(find "$MODULESDIR/kernel/arch" -type d -name "crypto")"
is empty for us on arm, which causes
copy_modules_dir "${archcrypto##*${MODULESDIR}/}"
to copy all modules.
two things to do here:
a) add a safety belt: dont call copy_modules_dir if archcrypto is empty
b) find out why on arm archcrypto is empty in the first place; if the find needs to be adjusted to it.
so evaluation is that :
archcrypto="$(find "$MODULESDIR/ kernel/ arch" -type d -name "crypto")"
is empty for us on arm, which causes
copy_modules_dir "${archcrypto# #*${MODULESDIR} /}"
to copy all modules.
two things to do here:
a) add a safety belt: dont call copy_modules_dir if archcrypto is empty
b) find out why on arm archcrypto is empty in the first place; if the find needs to be adjusted to it.