-- @field profile Configuration file passed to the shell (string).
-- @field groups table of strings: chroot groups
-- @field builtin_env Environment that's built in like E2_TMPDIR.
--- @field env Environment specified by the user.
--- Generate build_config and store in res.build_config.
-- @param info Info table.
bc.builtin_env:set("T", bc.Tc)
bc.builtin_env:set("r", r)
bc.builtin_env:set("R", r)
- bc.env = e2tool.env_by_result(info, r)
res.build_config = strict.lock(bc)
res.build_config.Tc))
-- install project specific environment variables
local file = string.format("%s/env/env", res.build_config.T)
- rc, re = write_environment_script(res.build_config.env, file)
+ rc, re = write_environment_script(e2tool.env_by_result(info, r), file)
if not rc then
return false, e:cat(re)
end
local file, line
-- generate environment script
file = string.format("%s/env", destdir)
- rc, re = write_environment_script(rn.build_config.env, file)
+ rc, re = write_environment_script(e2tool.env_by_result(info, n), file)
if not rc then
return false, e:cat(re)
end