[202311][Mellanox][MFT]: Update MFT to 4.27.0-83: bash login fix (#18462)

* Revert "[mellanox]: Disable MFT bash autocompletion. (#17543)"

This reverts commit 49e96c3daa.

* [mellanox][mft]: Update MFT to 4.27.0-83: bash login fix.

Signed-off-by: Nazarii Hnydyn <nazariig@nvidia.com>

---------

Signed-off-by: Nazarii Hnydyn <nazariig@nvidia.com>
This commit is contained in:
Nazarii Hnydyn 2024-03-25 18:29:33 +02:00 committed by GitHub
parent 5e9f1b05b8
commit 085765a45d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 18 deletions

View File

@ -14,10 +14,10 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
# #
# Mellanox SAI # Mellanox MFT
MFT_VERSION = 4.25.0 MFT_VERSION = 4.27.0
MFT_REVISION = 62 MFT_REVISION = 83
MLNX_MFT_INTERNAL_SOURCE_BASE_URL = MLNX_MFT_INTERNAL_SOURCE_BASE_URL =

View File

@ -42,8 +42,6 @@ DERIVED_TARGETS = $(MOD_DEB) mft-oem_$(MFT_VERSION)-$(MFT_REVISION)_$(CONFIGURED
DKMS_BMDEB = /var/lib/dkms/kernel-mft-dkms/$(MFT_VERSION)/bmdeb DKMS_BMDEB = /var/lib/dkms/kernel-mft-dkms/$(MFT_VERSION)/bmdeb
DKMS_TMP := $(shell mktemp -u -d -t dkms.XXXXXXXXXX) DKMS_TMP := $(shell mktemp -u -d -t dkms.XXXXXXXXXX)
MFT_TMP := $(shell mktemp -u -d -t mft.XXXXXXXXXX)
$(addprefix $(DEST)/, $(MAIN_TARGET)): $(DEST)/% : $(addprefix $(DEST)/, $(MAIN_TARGET)): $(DEST)/% :
rm -rf $(MFT_NAME) rm -rf $(MFT_NAME)
wget -O $(MFT_TGZ) $(MFT_TGZ_URL) wget -O $(MFT_TGZ) $(MFT_TGZ_URL)
@ -77,19 +75,6 @@ $(addprefix $(DEST)/, $(MAIN_TARGET)): $(DEST)/% :
rm -rf $(DKMS_TMP) rm -rf $(DKMS_TMP)
# w/a: disable bash autocompletion
mkdir -p $(MFT_TMP)/DEBIAN
dpkg -e $(MFT_NAME)/DEBS/$(MAIN_TARGET) $(MFT_TMP)/DEBIAN
dpkg -x $(MFT_NAME)/DEBS/$(MAIN_TARGET) $(MFT_TMP)
rm -rf $(MFT_TMP)/etc/bash_completion.d
sed -i '/bash_completion.d/d' $(MFT_TMP)/DEBIAN/conffiles
dpkg -b $(MFT_TMP) $(MFT_NAME)/DEBS/$(MAIN_TARGET)
rm -rf $(MFT_TMP)
# fix timestamp because we do not actually build tools, only kernel # fix timestamp because we do not actually build tools, only kernel
touch $(MFT_NAME)/DEBS/*.deb touch $(MFT_NAME)/DEBS/*.deb
mv $(MFT_NAME)/DEBS/*.deb $(DEST) mv $(MFT_NAME)/DEBS/*.deb $(DEST)