Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add debian 12 #78

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion kvm-install-vm
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ function usage_subcommand ()
printf " centos6 CentOS 6 centos\n"
printf " debian9 Debian 9 (Stretch) debian\n"
printf " debian10 Debian 10 (Buster) debian\n"
printf " debian12 Debian 12 (Bookworm) debian\n"
printf " fedora29 Fedora 29 fedora\n"
printf " fedora29-atomic Fedora 29 Atomic Host fedora\n"
printf " fedora30 Fedora 30 fedora\n"
Expand Down Expand Up @@ -360,6 +361,14 @@ function fetch_images ()
DISK_FORMAT=qcow2
LOGIN_USER=debian
;;
debian12)
QCOW=debian-12-genericcloud-amd64-daily.qcow2
OS_TYPE="linux"
OS_VARIANT="debian11"
IMAGE_URL=https://cloud.debian.org/images/cloud/bookworm/daily/latest
DISK_FORMAT=qcow2
LOGIN_USER=debian
;;
fedora29)
QCOW=Fedora-Cloud-Base-29-1.2.x86_64.qcow2
OS_TYPE="linux"
Expand Down Expand Up @@ -680,7 +689,7 @@ _EOF_
# See https://bugzilla.redhat.com/show_bug.cgi?id=1472039
# Ubuntu will automatically grow the partition to the new size on its first boot
case "$DISTRO" in
ubuntu*|amazon2)
ubuntu*|amazon2|debian12)
qemu-img resize $DISK $DISK_SIZE &>> ${VMNAME}.log \
&& ok \
|| die "Could not resize disk."
Expand Down