Skip to content

Commit

Permalink
arc: remove forced module loading while boot
Browse files Browse the repository at this point in the history
Signed-off-by: AuxXxilium <info@auxxxilium.tech>
  • Loading branch information
AuxXxilium committed May 16, 2024
1 parent 7b7410b commit d4afc25
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions files/initrd/opt/arc/arc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -305,19 +305,10 @@ function arcVersion() {
else
KVERP="${KVER}"
fi
echo "$(lsmod | awk '{print $1}' | sort)" >>"${TMP_PATH}/lsmod"
cp -f "${ARC_PATH}/include/modulelist" "${TMP_PATH}/modulelist.user"
echo -e "\n\n# User Modules" >>"${TMP_PATH}/modulelist.user"
writeConfigKey "modules" "{}" "${USER_CONFIG_FILE}"
while read -r ID DESC; do
writeConfigKey "modules.\"${ID}\"" "" "${USER_CONFIG_FILE}"
if [ -n "$(grep -w "${ID}" "${TMP_PATH}/lsmod")" ] && [ -z "$(grep -w "${ID}" "${TMP_PATH}/modulelist.user")" ]; then
echo "N ${ID}.ko" >>"${TMP_PATH}/modulelist.user"
fi
done <<<$(getAllModules "${PLATFORM}" "${KVERP}")
[ ! -d "${USER_UP_PATH}" ] && mkdir -p "${USER_UP_PATH}"
mv -f "${TMP_PATH}/modulelist.user" "${USER_UP_PATH}/modulelist"
dos2unix "${USER_UP_PATH}/modulelist" 2>/dev/null
# Check for Only Version
if [ "${ONLYVERSION}" = "true" ]; then
# Build isn't done
Expand Down

0 comments on commit d4afc25

Please sign in to comment.