]> git.e2factory.org Git - e2factory.git/commitdiff
use the tools module instead of hardcoding chown
authorTobias Ulmer <tu@emlix.com>
Thu, 8 Nov 2012 18:59:46 +0000 (19:59 +0100)
committerTobias Ulmer <tu@emlix.com>
Tue, 26 Feb 2013 18:07:11 +0000 (19:07 +0100)
Signed-off-by: Tobias Ulmer <tu@emlix.com>
generic/tools.lua
local/e2build.lua

index 37f093dd4e13e8dba304dc82943f3dc1a82e797b..25a7b235d26fa20e05311c24c8bc533b4246d35f 100644 (file)
@@ -49,6 +49,7 @@ local toollist = {
     tar = { name = "tar", flags = "", optional = false },
     sha1sum = { name = "sha1sum", flags = "", optional = false },
     md5sum = { name = "md5sum", flags = "", optional = false },
+    chown = { name = "chown", flags = "", optional = false },
     chmod = { name = "chmod", flags = "", optional = false },
     test = { name = "test", flags = "", optional = false },
     cat = { name = "cat", flags = "", optional = false },
index 605cb9ed23e4699237320eebdea067eec9796a58..976110ff722654fda14de0dcaccf9cd98564564c 100644 (file)
@@ -346,8 +346,8 @@ local function fix_permissions(info, r, return_flags)
     local e = err.new("fixing permissions failed")
     e2lib.log(3, "fix permissions")
     e2tool.set_umask(info)
-    local argv = { "chroot_2_3", res.build_config.base, "chown", "-R",
-    "root:root", res.build_config.Tc }
+    local argv = { "chroot_2_3", res.build_config.base, tools.get_tool("chown"),
+        "-R", "root:root", res.build_config.Tc }
     rc, re = e2lib.e2_su_2_2(argv)
     e2tool.reset_umask(info)
     if not rc then