diff --git a/xCAT-server/lib/xcat/plugins/anaconda.pm b/xCAT-server/lib/xcat/plugins/anaconda.pm index 7f67c2cfb..db3572b5a 100644 --- a/xCAT-server/lib/xcat/plugins/anaconda.pm +++ b/xCAT-server/lib/xcat/plugins/anaconda.pm @@ -2134,6 +2134,15 @@ sub copycd my @ol_version = split /[- ]/, $desc; $distname = "ol" . $ol_version[1]; } + elsif ($desc =~ /Fedora/) + { + # Attempt to auto-detect for Fedora OS, the first element + # (after " ") has typically been the version + # ex: Fedora 34 + # + my @fedora_version = split /[- ]/, $desc; + $distname = "fedora" . $fedora_version[1]; + } elsif ($desc =~ /^[\d\.]+$/) { open($dinfo, $mntpath . "/.treeinfo"); diff --git a/xCAT-server/share/xcat/install/fedora/compute.fedora34.pkglist b/xCAT-server/share/xcat/install/fedora/compute.fedora34.pkglist new file mode 100644 index 000000000..f23b1dcf2 --- /dev/null +++ b/xCAT-server/share/xcat/install/fedora/compute.fedora34.pkglist @@ -0,0 +1,10 @@ +#Please make sure there is a space between @ and group name +wget +vim-minimal +nfs-utils +rsync +net-tools +openssh-server +util-linux-ng +rsyslog +openssl diff --git a/xCAT-server/share/xcat/install/fedora/compute.fedora34.tmpl b/xCAT-server/share/xcat/install/fedora/compute.fedora34.tmpl new file mode 120000 index 000000000..50866c82a --- /dev/null +++ b/xCAT-server/share/xcat/install/fedora/compute.fedora34.tmpl @@ -0,0 +1 @@ +../rh/compute.rhels8.tmpl \ No newline at end of file