From ed9bdf805de761c7af0cba6b3c268733bf8102c1 Mon Sep 17 00:00:00 2001 From: wangxiyuan Date: Sun, 23 Apr 2023 08:24:29 +0000 Subject: [PATCH] Fix openeuler-minimal mirror problem TARGET_ROOT is not a valid key during pre-install step. The error `TARGET_ROOT: unbound variable` raises now. This PR remove the useless TARGET_ROOT in openeuler-minimal. Change-Id: I6fae2ca0e6c6e57a3b195367f2626d9e498e0329 --- .../elements/openeuler-minimal/pre-install.d/00-setup-mirror | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/diskimage_builder/elements/openeuler-minimal/pre-install.d/00-setup-mirror b/diskimage_builder/elements/openeuler-minimal/pre-install.d/00-setup-mirror index 339c8961..8284d250 100755 --- a/diskimage_builder/elements/openeuler-minimal/pre-install.d/00-setup-mirror +++ b/diskimage_builder/elements/openeuler-minimal/pre-install.d/00-setup-mirror @@ -9,5 +9,5 @@ set -o pipefail if [ -n "${DIB_DISTRIBUTION_MIRROR:-}" ]; then # Only set the mirror for OS, everything, EPOL and update repositories, # The others (debuginfo and source) aren't mirrored since they do not exist on all mirrors - sed -i "/\(debuginfo\|source\)/! {s#http://repo.openeuler.org#$DIB_DISTRIBUTION_MIRROR#g}" $TARGET_ROOT/etc/yum.repos.d/openEuler.repo + sed -i "/\(debuginfo\|source\)/! {s#http://repo.openeuler.org#$DIB_DISTRIBUTION_MIRROR#g}" /etc/yum.repos.d/openEuler.repo fi