summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2023-01-26 14:04:26 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2023-01-26 14:05:00 +0000
commitd1ea67deddf4acc10792d78648571715388063a3 (patch)
tree71a93ec68a6fdfd430adaa4fce279b8e8ac75197
parent6fef69e4bd8d67d0ebfe7798292550681ebcfe10 (diff)
downloadalpine-conf-d1ea67deddf4acc10792d78648571715388063a3.zip
setup-disk: don't use system repositories when testing
We should not depend on the running systems configuration for anything
-rw-r--r--setup-disk.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/setup-disk.in b/setup-disk.in
index 53ccee6..90c9c2d 100644
--- a/setup-disk.in
+++ b/setup-disk.in
@@ -693,7 +693,7 @@ install_mounted_root() {
if is_rpi; then
pkgs="$pkgs dosfstools"
fi
- local repos="$(sed -e 's/\#.*//' /etc/apk/repositories)"
+ local repos="$(sed -e 's/\#.*//' "$ROOT"/etc/apk/repositories 2>/dev/null)"
local repoflags=
for i in $repos; do
repoflags="$repoflags --repository $i"