aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorlcapriotti <lcapriotti@svn>2010-04-23 14:45:55 +0000
committerlcapriotti <lcapriotti@svn>2010-04-23 14:45:55 +0000
commit7e02fcca07c10ea27106f535ad7c3910c5c6c392 (patch)
tree5fcf7efc5b3d8b373b33bdc1f9a0b1df36e5b31e /tools
parent87bd7f5bb9772be99969bd7c10851ababfc8a6a5 (diff)
setup tempfs mounts the proper way
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@29453 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
Diffstat (limited to 'tools')
-rw-r--r--tools/XBMCLive/SDK/buildLive/Files/chroot_local-includes/etc/live-persistence.binds14
-rw-r--r--tools/XBMCLive/xbmc-live.conf9
2 files changed, 14 insertions, 9 deletions
diff --git a/tools/XBMCLive/SDK/buildLive/Files/chroot_local-includes/etc/live-persistence.binds b/tools/XBMCLive/SDK/buildLive/Files/chroot_local-includes/etc/live-persistence.binds
new file mode 100644
index 0000000000..64a4a39c8f
--- /dev/null
+++ b/tools/XBMCLive/SDK/buildLive/Files/chroot_local-includes/etc/live-persistence.binds
@@ -0,0 +1,14 @@
+# /etc/live-persistence.binds example
+#
+# If this file is present in the proper path, each uncommented not empty line
+# will be treated as a directory which should not be made persistent and
+# which it's content should be volatile.
+#
+# This is achieved by bind mounting on it a tmpfs clone of the directory specified
+
+# Exclude some standard temporary paths
+/tmp
+/var/log
+/var/cache
+/var/tmp
+
diff --git a/tools/XBMCLive/xbmc-live.conf b/tools/XBMCLive/xbmc-live.conf
index e0a1098209..6d166e8e26 100644
--- a/tools/XBMCLive/xbmc-live.conf
+++ b/tools/XBMCLive/xbmc-live.conf
@@ -107,15 +107,6 @@ pre-start script
fi
fi
- # Write fstab entries for ramdisks
- if grep -q -i tempfs /tmp/xbmcliveParams ; then
- if ! grep -q -i tmpfs /etc/fstab ; then
- echo "tmpfs /var/log tmpfs defaults 0 0" >> /etc/fstab
- echo "tmpfs /tmp tmpfs defaults 0 0" >> /etc/fstab
- echo "tmpfs /var/tmp tmpfs defaults 0 0" >> /etc/fstab
- fi
- fi
-
if [ ! "$(mount | grep iso9660)" ]; then
if ! grep -q -i noredir /tmp/xbmcliveParams ; then
if [ -n "$BOOTMEDIAMOUNTPOINT" ]; then