]> git.e2factory.org Git - e2factory.git/commitdiff
plugin support: store working directory at startup for use with plugins
authorGordon Hecker <gh@emlix.com>
Fri, 25 Jun 2010 14:15:32 +0000 (16:15 +0200)
committerGordon Hecker <gh@emlix.com>
Fri, 25 Jun 2010 14:44:36 +0000 (16:44 +0200)
Signed-off-by: Gordon Hecker <gh@emlix.com>
local/e2tool.lua

index 648139657289420dd4f412073ae2a5b3f64d5a69..9df3eb864833de4c630f1cb836363f63d2c5bc63 100644 (file)
@@ -390,6 +390,9 @@ function local_init(path, tool)
   -- initialization
   info.current_tool = tool
 
+  -- provide the current working directory at tool startup
+  info.startup_cwd = e2util.cwd()
+
   -- set the umask value to be used in chroot
   info.chroot_umask = 18   -- 0022 octal
   init_umask(info)