From 437a1525d5cf18121970297eaddc07a93b6e21a3 Mon Sep 17 00:00:00 2001 From: lou-lan Date: Mon, 4 Nov 2024 18:38:48 +0800 Subject: [PATCH] Fix miss rdma dependency Signed-off-by: lou-lan --- images/spiderpool-base/install-others.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/images/spiderpool-base/install-others.sh b/images/spiderpool-base/install-others.sh index 095699db7..b9ca65c30 100644 --- a/images/spiderpool-base/install-others.sh +++ b/images/spiderpool-base/install-others.sh @@ -14,7 +14,6 @@ packages=( libmnl0 bash-completion iptables - rdma-core ) @@ -28,6 +27,10 @@ ln -fs /usr/share/zoneinfo/UTC /etc/localtime apt-get install -y --no-install-recommends "${packages[@]}" +# The installation of rdma-core should not use the `--no-install-recommends` parameter +# to ensure that the corresponding dependencies are installed. +apt-get install -y rdma-core + apt-get purge --auto-remove apt-get clean rm -rf /var/lib/apt/lists/*