Both BaseOS and AppStream are needed.
---
virt-p2v-make-kickstart.in | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/virt-p2v-make-kickstart.in b/virt-p2v-make-kickstart.in
index 779ba62..cbbfb8a 100644
--- a/virt-p2v-make-kickstart.in
+++ b/virt-p2v-make-kickstart.in
@@ -176,6 +176,16 @@ repo --name=rhel6_${minor}_server_optional
--baseurl=$baseurl/Server/optional/$a
repos="$repos
repo --name=rhel7_${minor}_server --baseurl=$baseurl/Server/$arch/os $proxy
repo --name=rhel7_${minor}_server_optional --baseurl=$baseurl/Server-optional/$arch/os
$proxy
+"
+ ;;
+ rhel-8.*)
+ minor=$( echo "$repo" | sed 's/rhel-[0-9]*\.\([0-9]*\)/\1/'
)
+
baseurl=http://download.devel.redhat.com/released/RHEL-8/8.$minor.0
+ # '$basearch' cannot be used in kickstart, so:
+ arch=`uname -m`
+ repos="$repos
+repo --name=rhel8_${minor}_0_baseos --baseurl=$baseurl/BaseOS/$arch/os $proxy
+repo --name=rhel8_${minor}_0_appstream --baseurl=$baseurl/AppStream/$arch/os $proxy
"
;;
*)
--
2.24.1