[util-iso-image] fix build locale on root-image

This commit is contained in:
udeved 2016-06-09 19:10:13 +02:00
parent ef02de3513
commit a9a0b7d5e7

View file

@ -441,7 +441,7 @@ download_to_cache(){
# $1: image path
# $2: packages
chroot_create(){
[[ "$1" == "${work_dir}/root-image" ]] && local flag="-L"
[[ "${1##*/}" == "root-image" ]] && local flag="-L"
setarch "${target_arch}" \
mkchroot ${mkchroot_args[*]} ${flag} $@
}