Skip to content

Commit

Permalink
arc: remove loaded module write
Browse files Browse the repository at this point in the history
Signed-off-by: AuxXxilium <[email protected]>
  • Loading branch information
AuxXxilium committed Jun 27, 2024
1 parent 2c1bab8 commit 6adb83f
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions files/initrd/opt/arc/arc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -373,18 +373,10 @@ function arcVersion() {
KVERP="${KVER}"
fi
writeConfigKey "modules" "{}" "${USER_CONFIG_FILE}"
cp -f "${ARC_PATH}/include/modulelist" "${USER_UP_PATH}/modulelist"
echo -e "\n\n# Arc Modules" >>"${USER_UP_PATH}/modulelist"
KOLIST=""
for I in $(lsmod | awk -F' ' '{print $1}' | grep -v 'Module'); do
KOLIST+="$(getdepends "${PLATFORM}" "${KVERP}" "${I}") ${I} "
done
KOLIST=($(echo ${KOLIST} | tr ' ' '\n' | sort -u))
# Rewrite modules
writeConfigKey "modules" "{}" "${USER_CONFIG_FILE}"
while read -r ID DESC; do
writeConfigKey "modules.\"${ID}\"" "" "${USER_CONFIG_FILE}"
for MOD in ${KOLIST[@]}; do
[ "${MOD}" == "${ID}" ] && echo "N ${ID}.ko" >>"${USER_UP_PATH}/modulelist"
done
done < <(getAllModules "${PLATFORM}" "${KVERP}")
# Check for Only Version
if [ "${ONLYVERSION}" == "true" ]; then
Expand Down

0 comments on commit 6adb83f

Please sign in to comment.