Skip to content

Commit f0929de

Browse files
ronzleRonny Laborius
ronzle
and
Ronny Laborius
authored
Added Rocky 8.5 (#74)
* Added Rocky 8.5 * changed distro wildcards Co-authored-by: Ronny Laborius <rl@lbn24.com>
1 parent 5b3f388 commit f0929de

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

kvm-install-vm

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,8 @@ function usage_subcommand ()
8888
printf " ubuntu1604 Ubuntu 16.04 LTS (Xenial Xerus) ubuntu\n"
8989
printf " ubuntu1804 Ubuntu 18.04 LTS (Bionic Beaver) ubuntu\n"
9090
printf " ubuntu2004 Ubuntu 20.04 LTS (Focal Fossa) ubuntu\n"
91-
printf "\n"
91+
printf " rocky8.5 Rocky Linux rocky\n"
92+
printf "\n"
9293
printf "EXAMPLES\n"
9394
printf " $prog create foo\n"
9495
printf " Create VM with the default parameters: CentOS 8, 1 vCPU, 1GB RAM, 10GB\n"
@@ -446,6 +447,14 @@ function fetch_images ()
446447
DISK_FORMAT=qcow2
447448
LOGIN_USER=opensuse
448449
;;
450+
rocky85)
451+
QCOW=Rocky-8-GenericCloud-8.5-20211114.2.x86_64.qcow2
452+
OS_TYPE="linux"
453+
OS_VARIANT="rocky8.5"
454+
IMAGE_URL=https://dl.rockylinux.org/pub/rocky/8.5/images
455+
DISK_FORMAT=qcow2
456+
LOGIN_USER=rocky
457+
;;
449458
*)
450459
die "${DISTRO} not a supported OS. Run 'kvm-install-vm create help'."
451460
;;
@@ -526,7 +535,7 @@ function storpool_exists ()
526535
function set_sudo_group ()
527536
{
528537
case "${DISTRO}" in
529-
centos?|fedora??|*-atomic|amazon?|opensuse* )
538+
centos*|fedora*|rocky*|*-atomic|amazon*|opensuse* )
530539
SUDOGROUP="wheel"
531540
;;
532541
ubuntu*|debian* )
@@ -544,7 +553,7 @@ function set_cloud_init_remove ()
544553
centos6 )
545554
CLOUDINITDISABLE="chkconfig cloud-init off"
546555
;;
547-
centos8|centos7|amazon?|fedora??|ubuntu*|debian*|opensuse* )
556+
centos8|centos7|amazon*|fedora*|rocky*|ubuntu*|debian*|opensuse* )
548557
CLOUDINITDISABLE="systemctl disable cloud-init.service"
549558
;;
550559
*-atomic)

0 commit comments

Comments
 (0)