summaryrefslogtreecommitdiff
path: root/utils
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 /utils
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 'utils')
-rwxr-xr-xutils/sb215
1 files changed, 15 insertions, 0 deletions
diff --git a/utils/sb2 b/utils/sb2
index d761151..6bf9def 100755
--- a/utils/sb2
+++ b/utils/sb2
@@ -205,13 +205,28 @@ function initialize_sb_logging()
# (even comments are different in Lua and shell scripts..)
function create_common_sb2_conf_file_for_session()
{
+ sbox_user_home_dir=$HOME
+ if [ -z "$HOME" ]
+ then
+ sbox_user_home_dir="/home/unknown_user"
+ fi
+
cat <<END >>$SBOX_SESSION_DIR/sb2-session.conf
comment_1=" Common configuration file for Lua and Shell scripts."
comment_2=" Automatically generated file, do not edit."
+sbox_target="$SBOX_TARGET"
+
+sbox_dir="$SBOX_DIR"
+sbox_workdir="$SBOX_WORKDIR"
+sbox_user_home_dir="$sbox_user_home_dir"
+sbox_target_toolchain_dir="$SBOX_TARGET_TOOLCHAIN_DIR"
+
sbox_mapmode="$SBOX_MAPMODE"
sbox_target_root="$SBOX_TARGET_ROOT"
sbox_tools_root="$SBOX_TOOLS_ROOT"
+
+sbox_cputransparency_method="$SBOX_CPUTRANSPARENCY_METHOD"
END
}