From: Tobias Ulmer Date: Thu, 8 Nov 2012 18:59:46 +0000 (+0100) Subject: use the tools module instead of hardcoding chown X-Git-Tag: e2factory-2.3.13rc1~97 X-Git-Url: https://git.e2factory.org/?a=commitdiff_plain;h=52571c840e035bf9abc4e724b453001ce7abca8d;p=e2factory.git use the tools module instead of hardcoding chown Signed-off-by: Tobias Ulmer --- diff --git a/generic/tools.lua b/generic/tools.lua index 37f093d..25a7b23 100644 --- a/generic/tools.lua +++ b/generic/tools.lua @@ -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 }, diff --git a/local/e2build.lua b/local/e2build.lua index 605cb9e..976110f 100644 --- a/local/e2build.lua +++ b/local/e2build.lua @@ -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