From c4989f85773d3eef6c81f7bf569a152e8a12c0a8 Mon Sep 17 00:00:00 2001 From: Anton Midyukov Date: Thu, 12 Nov 2020 23:35:11 +0700 Subject: [PATCH] repo: Don't include online repositories if a variable ROOTFS_MAIN is set --- features.in/repo/image-scripts.d/90-enable-repo | 2 ++ 1 file changed, 2 insertions(+) diff --git a/features.in/repo/image-scripts.d/90-enable-repo b/features.in/repo/image-scripts.d/90-enable-repo index 0eb68857..3788147e 100755 --- a/features.in/repo/image-scripts.d/90-enable-repo +++ b/features.in/repo/image-scripts.d/90-enable-repo @@ -3,6 +3,8 @@ repo_source='/etc/apt/sources.list.d/yandex.list' +[ -z "$GLOBAL_ROOTFS_MAIN" ] || exit 0 + [ -s "$repo_source" ] || exit 0 # regexps from alterator-pkg (via installer-feature-online-repo)