1
0
James Ketrenos 519a38ff59 Updated to latest xe-solutions
Signed-off-by: James Ketrenos <james.p.ketrenos@intel.com>
2020-10-29 16:23:13 -07:00
..
2020-10-15 14:47:56 -07:00
2020-10-29 16:23:13 -07:00
2020-07-24 19:46:57 -07:00

To upgrade to a minor release

Copy 15sp1/00-from.in to 15sp2/00-from.in

Change sp1 and 15.1 to sp2 and 15.2.

Generate a new 10-sles-partner.in file, which assumes we have build containers already for the target distro and the partner keys exist on a bare metal system we can populate into ../../sles

export OS_RELEASE=15sp1

TARGET=${OS_RELEASE}/05-sles-partner.in
CREDS=../../../sles/${OS_RELEASE}/credentials
[ ! -d $(dirname ${TARGET}) ] && mkdir $(dirname ${TARGET})
cat << EOF > ${TARGET}
# SLES Credentials from SUSE 15 SP1 system running on runner
EOF
for cred in ${CREDS}/*; do
echo "RUN { \\"
cat "${cred}" | while read line; do echo "  echo '${line//\"/\\\"}' ; \\"; done
echo "} > /etc/zypp/credentials.d/$(basename ${cred})"
done >> ${TARGET}

TARGET=${OS_RELEASE}/06-sles-services.in
SERVICES=../../../sles/${OS_RELEASE}/services
cat << EOF > ${TARGET}
# SLES services from SUSE 15 SP1 system running on runner
EOF
for service in ${SERVICES}/*; do
echo "RUN { \\"
cat "${service}" | while read line; do echo "  echo '${line//\"/\\\"}' ; \\"; done
echo "} > /etc/zypp/services.d/$(basename ${service})"
done >> ${TARGET}

TARGET=${OS_RELEASE}/07-sles-repos.in
REPOS=../../../sles/${OS_RELEASE}/repos
cat << EOF > ${TARGET}
# SLES repos from SUSE 15 SP1 system running on runner
EOF
for repo in ${REPOS}/*; do
echo "RUN { \\"
cat "${repo}" | while read line; do echo "  echo '${line//\"/\\\"}' ; \\"; done
echo "} > /etc/zypp/repos.d/$(basename ${repo})"
done >> ${TARGET}