commit:     73c1fbe000df372ca1c6eed750ede06216b9b774
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Thu Dec  6 12:45:38 2018 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Thu Dec  6 12:45:38 2018 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=73c1fbe0

bin/etc-update: ensure we ignore the host for Prefix

Bug: https://bugs.gentoo.org/669290
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>

 bin/etc-update | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/etc-update b/bin/etc-update
index 4208b9f2b..d75388bba 100755
--- a/bin/etc-update
+++ b/bin/etc-update
@@ -32,7 +32,7 @@ get_config() {
                "${PORTAGE_CONFIGROOT}"etc/etc-update.conf)
 }
 
-OS_RELEASE_ID=$(cat /etc/os-release 2>/dev/null | grep '^ID=' | cut -d'=' -f2 
| sed -e 's/"//g')
+OS_RELEASE_ID=$(cat "@PORTAGE_EPREFIX@"/etc/os-release 2>/dev/null | grep 
'^ID=' | cut -d'=' -f2 | sed -e 's/"//g')
 
 case $OS_RELEASE_ID in
        suse|opensuse|opensuse-leap|opensuse-tumbleweed) OS_FAMILY='rpm' ;;

Reply via email to