From a0fb758acb43ed683a7a097f709d1e5c5b05b5e1 Mon Sep 17 00:00:00 2001 From: AuxXxilium Date: Tue, 27 Aug 2024 14:52:23 -0400 Subject: [PATCH] arc: fix logic Signed-off-by: AuxXxilium --- files/initrd/opt/arc/arc.sh | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/files/initrd/opt/arc/arc.sh b/files/initrd/opt/arc/arc.sh index ef492816..3aefafcb 100755 --- a/files/initrd/opt/arc/arc.sh +++ b/files/initrd/opt/arc/arc.sh @@ -334,13 +334,11 @@ function arcVersion() { else KVERP="${KVER}" fi - if [ "${AUTOMATED}" == "false" ]; then - # Rewrite modules - writeConfigKey "modules" "{}" "${USER_CONFIG_FILE}" - while read -r ID DESC; do - writeConfigKey "modules.\"${ID}\"" "" "${USER_CONFIG_FILE}" - done < <(getAllModules "${PLATFORM}" "${KVERP}") - fi + # Rewrite modules + writeConfigKey "modules" "{}" "${USER_CONFIG_FILE}" + while read -r ID DESC; do + writeConfigKey "modules.\"${ID}\"" "" "${USER_CONFIG_FILE}" + done < <(getAllModules "${PLATFORM}" "${KVERP}") # Check for Only Version if [ "${ONLYVERSION}" == "true" ]; then # Build isn't done