File tree 1 file changed +8
-2
lines changed
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 140
140
#
141
141
# Values in user config have higher priority during combining thus effectively
142
142
# 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
145
151
146
152
# CONFIG_BASIC was previously CONFIG_PUREBOOT_BASIC in the PureBoot distribution.
147
153
# Substitute it in config.user if present for backward compatibility.
You can’t perform that action at this time.
0 commit comments