NOTE: These containers are for internal Intel development purposes only for use with building and testing software enabling SUSE Enterprise Linux.
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
While in the "sles" directory run the following:
export OS_RELEASE=15sp2
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}