We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 39ca0c4 commit bc6f10bCopy full SHA for bc6f10b
lkp-exec/install
@@ -351,11 +351,31 @@ install_base_support()
351
create_host_config
352
}
353
354
+enable_centos_source(){
355
+ if ! yum list installed | grep -q yum-utils; then
356
+ yum install -y yum-utils
357
+ fi
358
+
359
+ if [ "$_system_version" = 9 ]; then
360
+ echo "enable source crb"
361
+ dnf config-manager --set-enabled crb
362
+ elif [ "$_system_version" = 8 ]; then
363
+ echo "enable source powertools"
364
+ dnf config-manager --set-enabled powertools
365
366
367
+}
368
369
. $LKP_SRC/lib/install.sh
370
371
detect_system
372
distro=$_system_name_lowercase
373
374
+echo "distro=$distro"
375
+echo "version=$_system_version"
376
377
+[ "$distro" = "centos" ] && enable_centos_source
378
379
DISTRO=$distro
380
export DISTRO
381
0 commit comments