mirror of
https://github.com/AuxXxilium/arc-v.git
synced 2024-11-23 23:11:05 +07:00
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:
parent
0e64c35b87
commit
ddd83b7e57
@ -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}")"
|
||||
|
Loading…
Reference in New Issue
Block a user