X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=meta-stx%2Fconf%2Fdistro%2Ffiles%2Fks%2Fpoky_stx_aio_ks.cfg;h=92460fb17a5241a754766cadc30fd074c256c56b;hb=eb071c5cf1929ca67a3474f9e67ee40a400f9dde;hp=bae15ec493f8f56bcc423d77aae2070f6c549020;hpb=4bed284cd2c43e567f233632ae159b6395b05995;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 bae15ec..92460fb 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 @@ -634,6 +640,7 @@ usermod -a -G sys_protected www usermod -a -G sys_protected nfv usermod -a -G sys_protected patching usermod -a -G sys_protected haproxy +usermod -a -G snmpd fm usermod -P root root # Extend path variable for sysadmin @@ -680,25 +687,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 <