diff --git a/.github/workflows/update_elrepo_config.yml b/.github/workflows/update_elrepo_config.yml index a000fb3f..02ff3233 100644 --- a/.github/workflows/update_elrepo_config.yml +++ b/.github/workflows/update_elrepo_config.yml @@ -38,7 +38,7 @@ jobs: run: | config_path=/home/runner/work/kernel/kernel/config_elrepo action_kernel_ver=$(grep "Linux/x86_64" $config_path | awk -F '[- ]' '{print $3}') - kernel_ver=$(curl -s 'https://elrepo.org/linux/kernel/el7/x86_64/RPMS/?C=N;O=D' | grep -oP 'kernel-ml-headers[^"]+' | head -n 1 | awk -F '-' '{print $4}') + kernel_ver=$(curl -s 'https://elrepo.org/linux/kernel/el9/x86_64/RPMS/?C=N;O=D' | grep -oP 'kernel-ml-headers[^"]+' | head -n 1 | awk -F '-' '{print $4}') echo "action_kernel_ver=$action_kernel_ver" echo "kernel_ver=$kernel_ver" if [[ "${action_kernel_ver}" == *"${kernel_ver}"* ]]; then @@ -53,15 +53,15 @@ jobs: working-directory: /workdir run: | sudo apt-get -qq install -y rpm2cpio - elrepo_c7_ver=$(curl -s 'https://elrepo.org/linux/kernel/el7/x86_64/RPMS/?C=N;O=D' | grep -oP 'kernel-ml-headers[^"]+' | head -n 1 | awk -F '-' '{print $4}') - sudo wget https://elrepo.org/linux/kernel/el7/x86_64/RPMS/kernel-ml-$elrepo_c7_ver-1.el7.elrepo.x86_64.rpm - sudo rpm2cpio kernel-ml-$elrepo_c7_ver-1.el7.elrepo.x86_64.rpm | cpio -divm + elrepo_c9_ver=$(curl -s 'https://elrepo.org/linux/kernel/el9/x86_64/RPMS/?C=N;O=D' | grep -oP 'kernel-ml-headers[^"]+' | head -n 1 | awk -F '-' '{print $4}') + sudo wget https://elrepo.org/linux/kernel/el9/x86_64/RPMS/kernel-ml-$elrepo_c9_ver-1.el9.elrepo.x86_64.rpm + sudo rpm2cpio kernel-ml-$elrepo_c9_ver-1.el9.elrepo.x86_64.rpm | cpio -divm cd /workdir/boot config=/home/runner/work/kernel/kernel/config_elrepo elrepo_patch=/home/runner/work/kernel/kernel/elrepo_config.patch sudo rm -rf $config - sudo mv config-*-1.el7.elrepo.x86_64 $config + sudo mv config-*-1.el9.elrepo.x86_64 $config sudo sed -ri 's/.*CONFIG_TCP_CONG_CUBIC.*/CONFIG_TCP_CONG_CUBIC=m/' ${config} sudo sed -ri 's/.*CONFIG_TCP_CONG_BBR.*/CONFIG_TCP_CONG_BBR=y/' ${config} sudo sed -ri '/.*CONFIG_DEFAULT_CUBIC.*/i\CONFIG_TCP_CONG_BBR2=m' ${config}