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

setup-disk: comment out local repositories

fixes #2540
parent 76aa606b
......@@ -253,6 +253,10 @@ install_mounted_root() {
if [ -z "$APKOVL" ]; then
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
echo "Restoring backup from $APKOVL to $rootdev..."
unpack_apkovl "$APKOVL" "$mnt" || return 1
Supports Markdown
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