diff options
author | Mika Westerberg <mika.westerberg@iki.fi> | 2009-03-06 14:03:36 +0200 |
---|---|---|
committer | Lauri Leukkunen <lle@rahina.org> | 2009-03-07 16:05:40 +0200 |
commit | c7da842c43f5707e1274c5d4f14914324909ddfa (patch) | |
tree | 5ec1430ac3ae6278dd46788fb66013af09bbc2dc /lua_scripts | |
parent | 93517a63c7c92f1640b2f2402de05eecfea7e6c8 (diff) |
Bugfix: Mapped terminfo paths based on active exec policy.
Signed-off-by: Lauri Aarnio <Lauri.Aarnio@iki.fi>
Diffstat (limited to 'lua_scripts')
-rw-r--r-- | lua_scripts/pathmaps/devel/00_default.lua | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/lua_scripts/pathmaps/devel/00_default.lua b/lua_scripts/pathmaps/devel/00_default.lua index d2020df..d99795d 100644 --- a/lua_scripts/pathmaps/devel/00_default.lua +++ b/lua_scripts/pathmaps/devel/00_default.lua @@ -201,6 +201,15 @@ python_lib_test = { { map_to = target_root, readonly = true } } +terminfo_test = { + { if_active_exec_policy_is = "Tools", + map_to = tools, readonly = true }, + { if_active_exec_policy_is = "Rootstrap", + map_to = target_root, readonly = true }, + { if_active_exec_policy_is = "Host", + use_orig_path = true, readonly = true }, + { map_to = target_root, readonly = true } +} -- =========== Mapping rule chains =========== @@ -289,6 +298,8 @@ devel_mode_rules_usr_share = { {prefix = "/usr/share/idl/microb-engine", map_to = target_root, readonly = true}, + {prefix = "/usr/share/terminfo", actions = terminfo_test}, + -- /usr/share/hildon* (this is a real prefix): -- (was added to map hildon-theme-layout-4) {prefix = "/usr/share/hildon", map_to = target_root, @@ -491,6 +502,7 @@ devel_mode_rules_etc = { readonly = true}, {prefix = "/etc/apt", map_to = target_root, readonly = true}, + {prefix = "/etc/terminfo", actions = terminfo_test}, -- Files that must not be mapped: {prefix = "/etc/resolvconf", use_orig_path = true, @@ -649,6 +661,14 @@ simple_chain = { -- ----------------------------------------------- -- 30. /lib/* + -- + -- terminfo search path is by default: + -- /etc/terminfo, /lib/terminfo and /usr/share/terminfo + -- we map these depending on active exec policy. + -- + -- Other rules are in /etc and /usr/share rules above. + -- + {prefix = "/lib/terminfo", actions = terminfo_test}, {prefix = "/lib", map_to = target_root, readonly = true}, -- ----------------------------------------------- |