Browse Source

Update mkimage-yum to not read /etc/redhat-release from the host

Docker-DCO-1.1-Signed-off-by: Andrew Page <admwiggin@gmail.com> (github: tianon)
Tianon Gravi 11 years ago
parent
commit
d29ee876ac
1 changed files with 1 additions and 1 deletions
  1. 1 1
      contrib/mkimage-yum.sh

+ 1 - 1
contrib/mkimage-yum.sh

@@ -76,7 +76,7 @@ rm -rf "$target"/var/cache/ldconfig/*
 
 version=
 if [ -r "$target"/etc/redhat-release ]; then
-    version="$(sed 's/^[^0-9\]*\([0-9.]\+\).*$/\1/' /etc/redhat-release)"
+    version="$(sed 's/^[^0-9\]*\([0-9.]\+\).*$/\1/' "$target"/etc/redhat-release)"
 fi
 
 if [ -z "$version" ]; then