File tree Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -533,13 +533,31 @@ launch_vm() {
533
533
vm_extra_args=" fips=${fips_mode} "
534
534
vm_initrd_inject=" "
535
535
536
+ local osname
537
+
538
+ case " ${boot_blueprint} " in
539
+ rhel* 9* 4* )
540
+ osname=" rhel9.4"
541
+ ;;
542
+ centos9* )
543
+ osname=" centos-stream9"
544
+ ;;
545
+ * )
546
+ record_junit " ${vmname} " " osname-parse" " FAILED"
547
+ exit 1
548
+ ;;
549
+ esac
550
+
551
+ record_junit " ${vmname} " " osname-parse" " OK"
552
+
553
+
536
554
# Add support of bootc image directory sharing with virtual machines
537
555
if [ " ${bootc_mode} " -ne 0 ] ; then
538
556
# The ISO files generated by bootc-image-builder is not recognized by virt-install.
539
557
# Work around the problem by specifying kernel and initrd paths.
540
558
if [[ " ${boot_blueprint} .iso" == * -bootc.iso ]] ; then
541
559
vm_loc_args+=" ,kernel=images/pxeboot/vmlinuz,initrd=images/pxeboot/initrd.img"
542
- vm_loc_args+=" --osinfo detect=on "
560
+ vm_loc_args+=" --osinfo name= ${osname} "
543
561
fi
544
562
fi
545
563
You can’t perform that action at this time.
0 commit comments