arc: if emmc is not used to boot loader, remove emmc modules to prevent periodic remount

Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
AuxXxilium 2024-01-04 19:34:39 +01:00
parent 0e64c35b87
commit ddd83b7e57

View File

@ -436,6 +436,15 @@ function make() {
return 1
fi
done < <(readConfigMap "addons" "${USER_CONFIG_FILE}")
# Check for eMMC Boot
if [[ "${LOADER_DISK}" = /dev/mmcblk* ]]; then
echo "Boot Device is eMMC."
else
deleteConfigKey "modules.mmc_block" "${USER_CONFIG_FILE}"
deleteConfigKey "modules.mmc_core" "${USER_CONFIG_FILE}"
fi
# Update PAT Data
PAT_URL_CONF="$(readConfigKey "arc.paturl" "${USER_CONFIG_FILE}")"
PAT_HASH_CONF="$(readConfigKey "arc.pathash" "${USER_CONFIG_FILE}")"