Commit dc200224 authored by Michael Shigorin's avatar Michael Shigorin

live, rescue: fixup 60-apt

There are two different versions of the script with the same name for different subprofiles, sharing some of the same bugs over the years, *sigh*. Shoving those into stage2 would yield online repositories enabled there too which *might* be wanted but will likely need installer support (at least some better error handling, the current culprit with unavailable repositories being apt-pkg's size estimation). Fixes: d2f892ab Fixes: 0f4ee98f
parent c7a1d3c8
......@@ -7,4 +7,4 @@ PROTO="${GLOBAL_LIVE_REPO%/*}" # http, ftp, rsync
MIRROR="${GLOBAL_LIVE_REPO#*/}" # alt, heanet, kiev, yandex, ...
sed -i "s,^#\(rpm \[.*\] ${PROTO:-http}.*\),\1," \
"/etc/apt/sources.list.d/${MIRROR:-yandex}.list"
"/etc/apt/sources.list.d/${MIRROR:-yandex}.list" ||:
#!/bin/sh
# enable online repository even more unconditionally
sed -i "s,^#\(rpm .* http.*\),\1," "/etc/apt/sources.list.d/yandex.list" || echo "** warning: unable to enable online repos" >&2
sed -i "s,^#\(rpm .* http.*\),\1," "/etc/apt/sources.list.d/yandex.list" ||
echo "** warning: unable to enable online repos" >&2
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