Merge pull request #4348 from tianon/fix-yum-tagging
Update mkimage-yum to not read /etc/redhat-release from the host
This commit is contained in:
commit
b5ba89596e
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue