From 1a700e208e67dbe964bb3b6158ce3312df57ba29 Mon Sep 17 00:00:00 2001 From: fumingwei Date: Tue, 28 Jun 2022 11:43:51 +0800 Subject: [PATCH] =?UTF-8?q?bugfix:=E4=BF=AE=E5=A4=8D=E5=9B=A0profile=5Fid?= =?UTF-8?q?=E5=A1=AB=E5=86=99=E9=94=99=E8=AF=AF=E5=AF=BC=E8=87=B4mk-base-i?= =?UTF-8?q?mage=E6=89=A7=E8=A1=8C=E5=A4=B1=E8=B4=A5=E7=9A=84=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tools/mk-base-image | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tools/mk-base-image b/tools/mk-base-image index ae67eb15..bc0fd036 100755 --- a/tools/mk-base-image +++ b/tools/mk-base-image @@ -17,11 +17,12 @@ case $profile_id in "TSG-X-NXR620G40-R01-P1403") kernel_version="3.10.0-1160.59.1.el7.x86_64" ;; - "7400MCN0P01R01" | "7400MCN123P01R01" |"9000NPBP01R01") + "7400-MCN0-P01R01" | "7400-MCN123-P01R01" |"9000-NPB-P01R01") kernel_version="5.4.159-1.el7.elrepo.x86_64" ;; *) kernel_version="error_profile_id" + echo "Set kernel_version failed, profile_id: $profile_id" exit 1 ;; esac @@ -63,12 +64,12 @@ case $profile_id in yum -c "$yum_config" --installroot="$target" -y --setopt=$setopt install $package_to_install_CentOS7 yum -c "$yum_config" --installroot="$target" -y --setopt=$setopt install $kernel_package_to_install ;; - "7400MCN0P01R01" | "7400MCN123P01R01" |"9000NPBP01R01") + "7400-MCN0-P01R01" | "7400-MCN123-P01R01" |"9000-NPB-P01R01") yum -c "$yum_config" --installroot="$target" -y --setopt=$setopt install $package_to_install_CentOS7 yum -c "$yum_config" --installroot="$target" -y --setopt=$setopt localinstall $locak_package_to_install_CentOS7 ;; *) - echo "Error profile id" + echo "Error profile id, profile_id: $profile_id" exit 1 ;; esac