]> git.e2factory.org Git - e2factory.git/commitdiff
chroot arch: fix regression, make x86_64 work again
authorTobias Ulmer <tu@emlix.com>
Thu, 1 Oct 2015 14:44:45 +0000 (16:44 +0200)
committerTobias Ulmer <tu@emlix.com>
Thu, 8 Oct 2015 15:49:17 +0000 (17:49 +0200)
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Changelog
local/e2tool.lua

index 2cfbe8b445623bffc70799cb8623dfbe276406d9..e2c58be139499bf707f4ed959bd3f669f594844b 100644 (file)
--- a/Changelog
+++ b/Changelog
@@ -1,4 +1,5 @@
 NEXT:
+ * Fix regression preventing use of x86_64 chroot
  * Fix hashcache problem causing an incorrect BuildID
  * Reset all signal handlers to their default values
  * Fix rotating logs when the result name contains a dash
index 2c28c2cc07e2fec67b8a943e21c487f5de3c2680..16b7fbe39abd607e53be723265a24bafcab6ce06 100644 (file)
@@ -1295,8 +1295,11 @@ function e2tool.collect_project_info(info, skip_load_config)
     if not info.chroot_call_prefix[info.project.chroot_arch] then
         e:append("chroot_arch is set to an invalid value")
     end
-    if info.project.chroot_arch == "x86_64" and
-        e2lib.host_system_arch ~= "x86_64" then
+    local host_system_arch, re = e2lib.get_sys_arch()
+    if not host_system_arch then
+        e:cat(re)
+    elseif info.project.chroot_arch == "x86_64" and
+        host_system_arch ~= "x86_64" then
         e:append("running on x86_32: switching to x86_64 mode is impossible.")
     end
     if e:getcount() > 1 then