X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=meta-stx%2Fconf%2Fdistro%2Ffiles%2Fks%2Fpoky_stx_aio_ks.cfg;h=3fadb48c1d9c6a82494a57bb2211aaa4addbbf69;hb=4001a48cf6d6f72b49acd5de7d1c1f35769c9612;hp=dff25fe483eb083766e99e4136d0079e1a9a4372;hpb=57fdea704bd62af847872c40508f00aa1d7cac60;p=pti%2Frtp.git diff --git a/meta-stx/conf/distro/files/ks/poky_stx_aio_ks.cfg b/meta-stx/conf/distro/files/ks/poky_stx_aio_ks.cfg index dff25fe..3fadb48 100644 --- a/meta-stx/conf/distro/files/ks/poky_stx_aio_ks.cfg +++ b/meta-stx/conf/distro/files/ks/poky_stx_aio_ks.cfg @@ -207,6 +207,16 @@ echo "bootloader --location=mbr $boot_device_arg --timeout=5 --append=\"$append\ echo "timezone --nontp --utc UTC" >/tmp/timezone-include %end +############################################################## +# pre script for poky-stx +############################################################## +%pre +mkdir -p /run/install/repo +cp installer-config/* /run/install/repo/ +rm -f /run/install/repo/Packages +ln -sf /Packages /run/install/repo/Packages +%end + ############################################################## # Main kickstart ############################################################## @@ -616,10 +626,6 @@ useradd -m -g sys_protected -G root -d /home/sysadmin -p ${SYSADMIN_P} -s /bin/s groupadd -r -g 128 nscd useradd -M -o -r -d / -s /sbin/nologin -c 'NSCD Daemon' -u 28 -g nscd nscd -useradd -p '' ceph -groupadd ceph -usermod -a -G ceph ceph - useradd -p '' patching groupadd patching usermod -a -G patching patching @@ -680,25 +686,26 @@ 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-19.12 -/usr/bin/smart channel -y \ - --add updates type=rpm-md name="Patches" baseurl=http://controller:${http_port:-8080}/updates/rel-19.12 - -# 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 +mkdir -p /etc/yum.repos.d +cat >/etc/yum.repos.d/platform.repo <