From cb11eab6401b4af498f0b1ce7123852a51aaad20 Mon Sep 17 00:00:00 2001 From: AntiBargu <11840928@qq.com> Date: Thu, 30 Nov 2023 19:56:52 +0800 Subject: [PATCH] Update install.sh --- lkp-node/install.sh | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/lkp-node/install.sh b/lkp-node/install.sh index c3c88db..2d3f9fd 100755 --- a/lkp-node/install.sh +++ b/lkp-node/install.sh @@ -15,20 +15,6 @@ git clone https://github.com/intel/lkp-tests.git cd /lkp-tests make install -# install common dependencies -sed -i '/libc6-dev:i386 (x86_64)/ s/^/# /' /lkp-tests/distro/depends/lkp-dev -yes | lkp install - -# install runtime dependencies -yum -y install elfutils-libelf-devel elfutils-devel libunwind libunwind-devel slang-devel perl-ExtUtils-Embed \ - platform-python-devel libunwind-devel python3-devel \ - https://rpmfind.net/linux/centos/7.9.2009/os/x86_64/Packages/btrfs-progs-4.9.1-1.el7.x86_64.rpm \ - https://rpmfind.net/linux/epel/7/x86_64/Packages/f/f2fs-tools-1.12.0-1.el7.x86_64.rpm -yum clean all -rm -rf /var/cache/yum -rpm -i http://mirror.centos.org/centos/8-stream/BaseOS/x86_64/os/Packages/libtraceevent-1.5.3-1.el8.x86_64.rpm --force -rpm -i http://ftp.pasteur.fr/mirrors/CentOS/8-stream/PowerTools/x86_64/os/Packages/libtraceevent-devel-1.5.3-1.el8.x86_64.rpm - # modify lkp-tests dependency sed -i -e '$a \ default-jdk: java-1.8.0-openjdk-devel\n\ @@ -51,4 +37,18 @@ sed -i -e '$a \ libtraceevent-dev:\n\ btrfs-progs:\n\ f2fs-tools:\n' \ - -e '/^python3:/d' /lkp-tests/distro/adaptation/centos \ No newline at end of file + -e '/^python3:/d' /lkp-tests/distro/adaptation/centos + +# install common dependencies +sed -i '/libc6-dev:i386 (x86_64)/ s/^/# /' /lkp-tests/distro/depends/lkp-dev +yes | lkp install + +# install runtime dependencies +yum -y install elfutils-libelf-devel elfutils-devel libunwind libunwind-devel slang-devel perl-ExtUtils-Embed \ + platform-python-devel libunwind-devel python3-devel \ + https://rpmfind.net/linux/centos/7.9.2009/os/x86_64/Packages/btrfs-progs-4.9.1-1.el7.x86_64.rpm \ + https://rpmfind.net/linux/epel/7/x86_64/Packages/f/f2fs-tools-1.12.0-1.el7.x86_64.rpm +yum clean all +rm -rf /var/cache/yum +rpm -i http://mirror.centos.org/centos/8-stream/BaseOS/x86_64/os/Packages/libtraceevent-1.5.3-1.el8.x86_64.rpm --force +rpm -i http://ftp.pasteur.fr/mirrors/CentOS/8-stream/PowerTools/x86_64/os/Packages/libtraceevent-devel-1.5.3-1.el8.x86_64.rpm \ No newline at end of file