config.sh: Move FEX cleanup to the finalization section

This ensures that the FEX image build does not fail.
This commit is contained in:
Neal Gompa
2025-03-20 19:43:41 -04:00
parent 6c39b23364
commit db073ec6ab
+6 -6
View File
@@ -302,6 +302,12 @@ EOF
fi
#======================================
# Finalization steps
#--------------------------------------
# Inhibit the ldconfig cache generation unit, see rhbz2348669
touch -r "/usr" "/etc/.updated" "/var/.updated"
if [[ "$kiwi_profiles" == *"FEX"* ]]; then
# Remove most things except libraries used by FEX and wine stuff.
# Most binaries that are present in non-x86 architectures should be removed,
@@ -380,10 +386,4 @@ if [[ "$kiwi_profiles" == *"FEX"* ]]; then
rm /usr/bin/rm
fi
#======================================
# Finalization steps
#--------------------------------------
# Inhibit the ldconfig cache generation unit, see rhbz2348669
touch -r "/usr" "/etc/.updated" "/var/.updated"
exit 0