Commit 1109a9bf authored by Natanael Copa's avatar Natanael Copa

setup-disk: comment out local repositories

fixes #2540
parent 76aa606b
......@@ -253,6 +253,10 @@ install_mounted_root() {
if [ -z "$APKOVL" ]; then
ovlfiles=/tmp/ovlfiles
lbu package - | tar -C "$mnt" -zxv > "$ovlfiles"
# comment out local repositories
if [ -f "$mnt"/etc/apk/repositories ]; then
sed -i -e 's:^/:#/:' "$mnt"/etc/apk/repositories
fi
else
echo "Restoring backup from $APKOVL to $rootdev..."
unpack_apkovl "$APKOVL" "$mnt" || return 1
......
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