[repo] fix arm directory detection (skip ELF class check)

This commit is contained in:
Fabio Erculiani 2012-08-01 15:49:19 +02:00
parent 388d27a749
commit 4ac4c727a5
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ def spawn_ssh(args, chroot):
bash_exec = os.path.join(chroot, "bin/bash") # must exists
elf_class = read_elf_class(bash_exec)
pre_chroot = []
if elf_class != 2: # 32 bit
if elf_class != 2 and (os.path.basename(chroot).find("arm") == -1): # 32 bit
pre_chroot = ["linux32"]
rc_pid, rc = exec_chroot_cmd(args, chroot, pre_chroot = pre_chroot)
return rc_pid, rc