|
|
|
@ -8,14 +8,23 @@ INSTALLROOT="/dev/shm/${IMAGE}"
|
|
|
|
|
sudo rm -rf "${INSTALLROOT}"
|
|
|
|
|
sudo mkdir -p "${INSTALLROOT}"
|
|
|
|
|
|
|
|
|
|
if [ "${VERSION}" = "tumbleweed" ]; then
|
|
|
|
|
URL="http://download.opensuse.org/tumbleweed"
|
|
|
|
|
else
|
|
|
|
|
URL="http://download.opensuse.org/distribution/leap/${VERSION}"
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
sudo zypper --root "${INSTALLROOT}" \
|
|
|
|
|
ar "http://download.opensuse.org/distribution/leap/${VERSION}/repo/oss/" "oss"
|
|
|
|
|
sudo zypper --root "${INSTALLROOT}" \
|
|
|
|
|
ar "http://download.opensuse.org/distribution/leap/${VERSION}/repo/non-oss/" "non-oss"
|
|
|
|
|
sudo zypper --root "${INSTALLROOT}" \
|
|
|
|
|
ar "http://download.opensuse.org/update/leap/${VERSION}/oss/" "update-oss"
|
|
|
|
|
ar "${URL}/repo/oss/" "oss"
|
|
|
|
|
sudo zypper --root "${INSTALLROOT}" \
|
|
|
|
|
ar "http://download.opensuse.org/update/leap/${VERSION}/non-oss/" "update-non-oss"
|
|
|
|
|
ar "${URL}/repo/non-oss/" "non-oss"
|
|
|
|
|
|
|
|
|
|
if [ "${VERSION}" != "tumbleweed" ]; then
|
|
|
|
|
sudo zypper --root "${INSTALLROOT}" \
|
|
|
|
|
ar "http://download.opensuse.org/update/leap/${VERSION}/oss/" "update-oss"
|
|
|
|
|
sudo zypper --root "${INSTALLROOT}" \
|
|
|
|
|
ar "http://download.opensuse.org/update/leap/${VERSION}/non-oss/" "update-non-oss"
|
|
|
|
|
fi
|
|
|
|
|
setarch i686 sudo zypper --root "${INSTALLROOT}" \
|
|
|
|
|
--gpg-auto-import-keys ref
|
|
|
|
|
setarch i686 sudo zypper --root "${INSTALLROOT}" \
|
|
|
|
|