File tree Expand file tree Collapse file tree 1 file changed +5
-9
lines changed
xCAT-server/share/xcat/netboot/rh Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -372,15 +372,7 @@ if($onlyinitrd){
372
372
373
373
my $yumcmd = " yum $non_interactive -c /tmp/genimage.$$ .yum.conf --installroot=$rootimg_dir / --disablerepo=* " ;
374
374
375
- if ($osver =~ / ^rhel\D *(\d *)[.\d ]*.*$ / ) {
376
- $majorrel = $1 ;
377
- if ($majorrel > 7) {
378
- $yumcmd .= " --releasever=" . $majorrel . " " ;
379
- $yumcmd .= " --setopt=module_platform_id=platform:el" . $majorrel . " " ;
380
- }
381
- }
382
-
383
- if ($osver =~ / ^ol\D *(\d *)[.\d ]*.*$ / ) {
375
+ if ($osver =~ / ^(?:rhel|rocky|alma|ol)\D *(\d *)[.\d ]*.*$ / ) {
384
376
$majorrel = $1 ;
385
377
if ($majorrel > 7) {
386
378
$yumcmd .= " --releasever=" . $majorrel . " " ;
@@ -1985,6 +1977,10 @@ sub using_systemd {
1985
1977
if ($1 >= 8) {
1986
1978
return 1;
1987
1979
}
1980
+ } elsif ($os =~ / alma(\d +)/ ) {
1981
+ if ($1 >= 8) {
1982
+ return 1;
1983
+ }
1988
1984
} elsif ($os =~ / ol(\d +)/ ) {
1989
1985
if ($1 >= 7) {
1990
1986
return 1;
You can’t perform that action at this time.
0 commit comments