feature:TSG-9946:tsg os适配 TSG-X-P1403平台
This commit is contained in:
@@ -9,7 +9,12 @@
|
||||
yum_config=$1
|
||||
target=$2
|
||||
projectdir=$3
|
||||
kernel_version="5.4.159-1.el7.elrepo.x86_64"
|
||||
profile_id=$4
|
||||
if [ $profile_id == "TSG-X-NXR620G40-R01-P1403" ];then
|
||||
kernel_version="3.10.0-1160.59.1.el7.x86_64"
|
||||
else
|
||||
kernel_version="5.4.159-1.el7.elrepo.x86_64"
|
||||
fi
|
||||
|
||||
set -ex
|
||||
|
||||
@@ -24,8 +29,9 @@ setopt="group_package_types=mandatory,default,optional"
|
||||
|
||||
yum -c "$yum_config" --installroot="$target" -y makecache
|
||||
yum -c "$yum_config" --installroot="$target" -y --setopt=$setopt install $package_to_install
|
||||
yum -c "$yum_config" --installroot="$target" -y --setopt=$setopt localinstall $locak_package_to_install
|
||||
|
||||
if [ $profile_id != "TSG-X-NXR620G40-R01-P1403" ];then
|
||||
yum -c "$yum_config" --installroot="$target" -y --setopt=$setopt localinstall $locak_package_to_install
|
||||
fi
|
||||
#git clone --depth 1 https://github.com/brendangregg/FlameGraph.git /opt/tools/FlameGraph/
|
||||
#git clone --depth 1 https://github.com/brendangregg/perf-tools.git /opt/tools/perf-tools/
|
||||
test -d "$target"/opt/tools/ || mkdir -p "$target"/opt/tools/
|
||||
|
||||
Reference in New Issue
Block a user