From 09b95bf651c065e9fffae3255ecf0d0e52a61249 Mon Sep 17 00:00:00 2001 From: Don Penney Date: Thu, 2 Jan 2020 17:40:09 -0500 Subject: [PATCH] Update kickstarts to generate DNF repo config files As the patching framework is updated to use DNF instead of the smart package manager, the kickstarts are updated to generate the initial DNF repo config files, rather than configure the smartpm channels. Depends-On: https://review.opendev.org/700961 Change-Id: Ic625aa4646b45719c9527159aa46f157a4d2cff0 Story: 2006227 Task: 37935 Signed-off-by: Don Penney --- bsp-files/kickstarts/post_common.cfg | 30 ++++++++++++++-------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/bsp-files/kickstarts/post_common.cfg b/bsp-files/kickstarts/post_common.cfg index 48abb747..f0f63417 100644 --- a/bsp-files/kickstarts/post_common.cfg +++ b/bsp-files/kickstarts/post_common.cfg @@ -31,25 +31,25 @@ else fi . /etc/platform/platform.conf -# Configure smart package manager channels -rm -rf /var/lib/smart -mkdir /var/lib/smart -/usr/bin/smart channel -y \ - --add rpmdb type=rpm-sys name="RPM Database" -/usr/bin/smart channel -y \ - --add base type=rpm-md name="Base" baseurl=http://controller:${http_port:-8080}/feed/rel-xxxPLATFORM_RELEASExxx -/usr/bin/smart channel -y \ - --add updates type=rpm-md name="Patches" baseurl=http://controller:${http_port:-8080}/updates/rel-xxxPLATFORM_RELEASExxx - -# Configure smart to use rpm --nolinktos option -/usr/bin/smart config --set rpm-nolinktos=true - -# Configure smart to use rpm --nosignature option -/usr/bin/smart config --set rpm-check-signatures=false # Delete the CentOS yum repo files rm -f /etc/yum.repos.d/CentOS-* +# Create platform yum repo file +cat >/etc/yum.repos.d/platform.repo <