diff options
Diffstat (limited to 'scripts/uchroot')
-rwxr-xr-x | scripts/uchroot | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/uchroot b/scripts/uchroot index 5a876c2..fe07178 100755 --- a/scripts/uchroot +++ b/scripts/uchroot @@ -3,6 +3,7 @@ # Configuration has to be passed trough envrionment. # ROOT: path to directory to chroot in # ARCH: optional target architecture (if qemu should be used) +# QEMU_ARCH: optional qemu architecture to replace ARCH # MOUNT: pairs of two paths separated by colon (LOCAL:INROOT) set -e if [ "$(id -u)" != "0" ]; then @@ -37,7 +38,7 @@ done <<<"$MOUNT" cp -f /etc/resolv.conf "$ROOT/etc/resolv.conf" cp -f /etc/hosts "$ROOT/etc/hosts" if [ "$ARCH" != "$(arch)" ]; then - qemu_exec="$(which "qemu-$ARCH")" + qemu_exec="$(which "qemu-${QEMU_ARCH:-$ARCH}")" cp -f "$qemu_exec" "$ROOT$qemu_exec" fi |