File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -351,11 +351,31 @@ install_base_support()
351
351
create_host_config
352
352
}
353
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
+ fi
366
+
367
+ }
368
+
354
369
. $LKP_SRC /lib/install.sh
355
370
356
371
detect_system
357
372
distro=$_system_name_lowercase
358
373
374
+ echo " distro=$distro "
375
+ echo " version=$_system_version "
376
+
377
+ [ " $distro " = " centos" ] && enable_centos_source
378
+
359
379
DISTRO=$distro
360
380
export DISTRO
361
381
You can’t perform that action at this time.
0 commit comments