Commit 7531a792 authored by Guido Gunther's avatar Guido Gunther

Make amber-phone images possible right now

amber-phone-staging has about everything now but amber-phone
is still waiting for transitions. So in order to be able to
have images with a correct source.list bootstrap with
amber-phone-staging and switch back to amber-phone afterwards.

This can be removed in about a week when packages transitioned,
we can also drop 0037c22d then.
parent 5d2cc8b1
......@@ -3,5 +3,8 @@ apt_sources="deb https://repo.pureos.net/pureos amber main
deb https://repo.pureos.net/pureos amber-updates main
deb https://repo.pureos.net/pureos amber-security main
deb https://repo.pureos.net/pureos amber-phone main
deb https://repo.pureos.net/pureos amber-phone-staging main
deb https://repo.pureos.net/pureos amber-proposed-updates main
"
debootstrap_dist=amber
......@@ -293,6 +293,17 @@ EOF
fi
}
function workaround_pureos_transitions()
{
# Remove the bootstrap workaround so users
# only get properly transitioned packages
if [ "${distro}" == "amber-phone" ]; then
echo "Using amber-phone boostrap hack"
grep -v -E 'amber-phone-staging|amber-proposed-updates' "${basedir}/etc/apt/sources.list" > "${basedir}/etc/apt/sources.list.tmp"
mv -f "${basedir}/etc/apt/sources.list.tmp" "${basedir}/etc/apt/sources.list"
cat "${basedir}/etc/apt/sources.list"
fi
}
function create_report()
{
......@@ -328,6 +339,7 @@ setup_locale
setup_gui
setup_journal
setup_sshd
workaround_pureos_transitions
setup_kernel
case "${pureos_board}" in
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment