Laszlo Ersek
2023-Jan-30 14:22 UTC
[Libguestfs] [p2v PATCH 11/11] make-kickstart: add URLs for RHEL-9
This is similar to commit 2d608e252bbe ("Add kickstart URLs for RHEL 8", 2020-02-18), but we also need to add EPEL-9 (cf. commit f4c7ae6ba98f, "make-disk: inject EPEL9 repo in RHEL9 disk image", 2023-01-20). Cc: Alban Lecorps <alban.lecorps at ubisoft.com> Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1792141 Signed-off-by: Laszlo Ersek <lersek at redhat.com> --- virt-p2v-make-kickstart.in | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/virt-p2v-make-kickstart.in b/virt-p2v-make-kickstart.in index 7f215fc4ebb4..d16161f97398 100644 --- a/virt-p2v-make-kickstart.in +++ b/virt-p2v-make-kickstart.in @@ -190,6 +190,19 @@ repo --name=rhel7_${minor}_server_optional --baseurl=$baseurl/Server-optional/$a 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 +" + # Avoid recommends by default. + packages_options="--excludeWeakdeps" + ;; + rhel-9.*) + minor=$( echo "$repo" | sed 's/rhel-[0-9]*\.\([0-9]*\)/\1/' ) + baseurl=http://download.devel.redhat.com/released/RHEL-9/9.$minor.0 + # '$basearch' cannot be used in kickstart, so: + arch=`uname -m` + repos="$repos +repo --name=rhel9_${minor}_0_baseos --baseurl=$baseurl/BaseOS/$arch/os $proxy +repo --name=rhel9_${minor}_0_appstream --baseurl=$baseurl/AppStream/$arch/os $proxy +repo --name=epel9 --mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-9\\\\&arch=$arch " # Avoid recommends by default. packages_options="--excludeWeakdeps"
Richard W.M. Jones
2023-Jan-30 18:16 UTC
[Libguestfs] [p2v PATCH 11/11] make-kickstart: add URLs for RHEL-9
I had a few reservations in a couple of comments, but basically the series is fine and therefore: Reviewed-by: Richard W.M. Jones <rjones at redhat.com> Please push it whenever you want. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-top is 'top' for virtual machines. Tiny program with many powerful monitoring features, net stats, disk stats, logging, etc. http://people.redhat.com/~rjones/virt-top