File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 140140#
141141# Values in user config have higher priority during combining thus effectively
142142# changing the value for the rest of the scripts which source /tmp/config.
143- echo " export CONFIG_TPM=\" $CONFIG_TPM \" " >> /etc/config.user
144- echo " export CONFIG_TPM2_TOOLS=\" $CONFIG_TPM2_TOOLS \" " >> /etc/config.user
143+
144+ # Only set CONFIG_TPM and CONFIG_TPM2_TOOLS if they are not already set in /etc/config.user
145+ if ! grep -q ' CONFIG_TPM=' /etc/config.user; then
146+ echo " export CONFIG_TPM=\" $CONFIG_TPM \" " >> /etc/config.user
147+ fi
148+ if ! grep -q ' CONFIG_TPM2_TOOLS=' /etc/config.user; then
149+ echo " export CONFIG_TPM2_TOOLS=\" $CONFIG_TPM2_TOOLS \" " >> /etc/config.user
150+ fi
145151
146152# CONFIG_BASIC was previously CONFIG_PUREBOOT_BASIC in the PureBoot distribution.
147153# Substitute it in config.user if present for backward compatibility.
You can’t perform that action at this time.
0 commit comments