summaryrefslogtreecommitdiff
path: root/lua_scripts/pathmaps/simple/00_default.lua
diff options
context:
space:
mode:
authorLauri Aarnio <Lauri.Aarnio@iki.fi>2008-09-17 18:17:19 +0300
committerLauri Leukkunen <lle@rahina.org>2008-09-27 00:02:42 +0300
commit104871d02b12d59c0f2ce07af8db7366b2609588 (patch)
treea86af5019c86170b14490b728b1ba5b681c02f5f /lua_scripts/pathmaps/simple/00_default.lua
parent86678b08e80573b11870e8b2b9031a89bb108fad (diff)
Removed all calls to os.getenv() from pathmapping scripts - added several variables to sb2-session.conf (but didn't remove the environment variables yet)
Diffstat (limited to 'lua_scripts/pathmaps/simple/00_default.lua')
-rw-r--r--lua_scripts/pathmaps/simple/00_default.lua15
1 files changed, 5 insertions, 10 deletions
diff --git a/lua_scripts/pathmaps/simple/00_default.lua b/lua_scripts/pathmaps/simple/00_default.lua
index c6bb8bb..6a595a5 100644
--- a/lua_scripts/pathmaps/simple/00_default.lua
+++ b/lua_scripts/pathmaps/simple/00_default.lua
@@ -6,11 +6,6 @@ if (not tools) then
tools = "/"
end
-sb2_session_dir = os.getenv("SBOX_SESSION_DIR")
-if (not sb2_session_dir) then
- sb2_session_dir = "/tmp"
-end
-
simple_chain = {
next_chain = nil,
binary = nil,
@@ -32,8 +27,8 @@ simple_chain = {
{prefix = "/home", use_orig_path = true},
{prefix = "/host_usr", map_to = target_root},
- {prefix = sb2_session_dir, use_orig_path = true},
- {prefix = "/tmp", map_to = sb2_session_dir},
+ {prefix = session_dir, use_orig_path = true},
+ {prefix = "/tmp", map_to = session_dir},
{prefix = "/dev", use_orig_path = true},
{prefix = "/proc", use_orig_path = true},
@@ -48,14 +43,14 @@ simple_chain = {
qemu_chain = {
next_chain = nil,
- binary = basename(os.getenv("SBOX_CPUTRANSPARENCY_METHOD")),
+ binary = basename(sbox_cputransparency_method),
rules = {
{prefix = "/lib", map_to = target_root},
{prefix = "/usr/lib", map_to = target_root},
{prefix = "/usr/local/lib", map_to = target_root},
- {prefix = sb2_session_dir, use_orig_path = true},
- {prefix = "/tmp", map_to = sb2_session_dir},
+ {prefix = session_dir, use_orig_path = true},
+ {prefix = "/tmp", map_to = session_dir},
{prefix = "/dev", use_orig_path = true},
{prefix = "/proc", use_orig_path = true},