summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <blino@mageia.org>2011-05-22 13:58:08 +0000
committerOlivier Blin <blino@mageia.org>2011-05-22 13:58:08 +0000
commit4ff8b425b7080a465b5de3429340cb74c3326cf9 (patch)
treeda8dfa194681a19bb367fa9ec93d33691d262693
parentd311def43d242f08e1e8204cbf79881724165387 (diff)
downloaddraklive-config-4ff8b425b7080a465b5de3429340cb74c3326cf9.tar
draklive-config-4ff8b425b7080a465b5de3429340cb74c3326cf9.tar.gz
draklive-config-4ff8b425b7080a465b5de3429340cb74c3326cf9.tar.bz2
draklive-config-4ff8b425b7080a465b5de3429340cb74c3326cf9.tar.xz
draklive-config-4ff8b425b7080a465b5de3429340cb74c3326cf9.zip
use akonadi mobile config during live session, not to have 150 MB of db files in tmpfs
-rw-r--r--config/live.cfg8
1 files changed, 6 insertions, 2 deletions
diff --git a/config/live.cfg b/config/live.cfg
index ccd946e..13d22af 100644
--- a/config/live.cfg
+++ b/config/live.cfg
@@ -171,8 +171,12 @@ my $_l = {
#- workaround rpm bug that leaves a corrupted rpm DB in chroot
"rm -f /var/lib/rpm/__db.*",
"rm -f /.readahead_collect",
- if_($live->{settings}{desktop} eq 'KDE4',
- "rm -f /usr/share/icons/*/icon-theme.cache"),
+ if_($live->{settings}{desktop} eq 'KDE4',
+ "rm -f /usr/share/icons/*/icon-theme.cache",
+ "cp -a /etc/akonadi/mysql-global.conf /etc/akonadi/mysql-global-standard.conf",
+ "cp /etc/akonadi/mysql-global-mobile.conf /etc/akonadi/mysql-global.conf",
+ "ak=/etc/draklive-install.d/run.d/restore-akonadi-config.sh; echo -e '#!/bin/sh\ncp /etc/akonadi/mysql-global-standard.conf /etc/akonadi/mysql-global.conf' > $ak; chmod +x $ak",
+ ),
if_($live->{settings}{desktop} eq 'GNOME',
'mkdir -p "/home/$live->{settings}{default_user}/.config/autostart/"; for file in "/etc/xdg/autostart/tracker*.desktop"; do sed "s/X-GNOME-Autostart-enabled=true/X-GNOME-Autostart-enabled=false/g" $file >"/home/$live->{settings}{default_user}/.config/autostart/$(basename $file)"; done'),