X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=contrib%2Flbuild%2Flbuild-rhel8;h=f042084693f7867be4e9008e957fe6baf003f461;hb=cd45eff5bd8ce0ca5bb9da5fe8997c547abb8de7;hp=77b4fa4c6f9dffdfa6c9a026b13e036799b1ba51;hpb=f176efd183ead0b3008eb502c78b00f0c127f992;p=fs%2Flustre-release.git diff --git a/contrib/lbuild/lbuild-rhel8 b/contrib/lbuild/lbuild-rhel8 index 77b4fa4..f042084 100644 --- a/contrib/lbuild/lbuild-rhel8 +++ b/contrib/lbuild/lbuild-rhel8 @@ -68,12 +68,6 @@ Patch99995: patch-%{version}-lustre.patch' \ # lustre patch\ ApplyOptionalPatch patch-%{version}-lustre.patch\ ' \ - -e '/rm -f include\/generated\/kernel.cross/i\ - # lustre kernel config.\ - if [ -f %{_topdir}/lustre/lustre/kernel_patches/kernel_configs/kernel-%{version}-4.18-rhel8-%{_target_cpu}.config ]; then\ - echo "# $Arch" > configs/kernel-%{version}-%{_target_cpu}.config\ - cat %{_topdir}/lustre/lustre/kernel_patches/kernel_configs/kernel-%{version}-4.18-rhel8-%{_target_cpu}.config >> configs/kernel-%{version}-%{_target_cpu}.config\ - fi'\ -e '/^# Dynamically generate kernel/a echo "CONFIG_BH_LRU_SIZE=16" >> config-generic'\ SPECS/$SPEC_NAME 2>&1 || \ fatal 1 "Error while editing SPECS/$SPEC_NAME" @@ -114,15 +108,20 @@ find_linux_rpm-rhel8() { } kernel_srpm_location() { + local kdir - echo "http://vault.centos.org/centos/8/updates/Source/SPackages/" + case $lnxrel in + *8_2) kdir="8.2.2004" ;; + *8_1) kdir="8.1.1911" ;; + *8_0) kdir="8.0.1905" ;; + *) ;; + esac + echo "http://vault.centos.org/$kdir/BaseOS/Source/SPackages/" } kernel_debuginfo_location() { - - echo "http://debuginfo.centos.org/8/x86_64/" - + echo "http://debuginfo.centos.org/8/x86_64/Packages/" } cleanup_rpmmacros() {