summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2003-11-19 15:23:28 +0000
committerPascal Rigaux <pixel@mandriva.com>2003-11-19 15:23:28 +0000
commitd1dc40dcd6c57c9fa529a2da311e8a7d031e1da6 (patch)
treed83e1fe8b2852ee4a04e8ac969cfe87f51404695
parent987857360874168e9106c8b3370773fbc0c83dee (diff)
downloaddrakx-d1dc40dcd6c57c9fa529a2da311e8a7d031e1da6.tar
drakx-d1dc40dcd6c57c9fa529a2da311e8a7d031e1da6.tar.gz
drakx-d1dc40dcd6c57c9fa529a2da311e8a7d031e1da6.tar.bz2
drakx-d1dc40dcd6c57c9fa529a2da311e8a7d031e1da6.tar.xz
drakx-d1dc40dcd6c57c9fa529a2da311e8a7d031e1da6.zip
.kde/share/cache is a symlink to a tmpfs directory to ensure the key doesn't
grow too much
-rw-r--r--move/move.pm9
1 files changed, 9 insertions, 0 deletions
diff --git a/move/move.pm b/move/move.pm
index c0a0984c6..b3850c3c6 100644
--- a/move/move.pm
+++ b/move/move.pm
@@ -381,6 +381,15 @@ sub install_TrueFS_in_home {
run_program::run('mount', '-o', 'bind', "$dir/$_", "/home/$user/$_");
}
+
+ my $cache = "/tmp/.$user-cache";
+ foreach (qw(.kde/share/cache)) {
+ mkdir_p("$cache/$_");
+ mkdir_p("/home/$user/" . dirname($_));
+ symlink "$cache/$_", "/home/$user/$_";
+ }
+ run_program::run('chown', '-R', "$user.$user", $cache);
+
$ENV{ICEAUTHORITY} = "$dir/.ICEauthority";
}
}