[Fedora-livecd-list] config/livecd-fedora-base-desktop.ks
Jeremy Katz
katzj at fedoraproject.org
Tue May 27 20:04:59 UTC 2008
config/livecd-fedora-base-desktop.ks | 8 ++++++++
1 file changed, 8 insertions(+)
New commits:
commit c0f49393a954084e7a3bb9a6564096054aa6e49d
Author: Jeremy Katz <katzj at redhat.com>
Date: Mon May 19 15:53:43 2008 -0400
Mount a tmpfs on /tmp, /var/tmp and /var/cache (#447127)
dm-snapshot is pretty high-overhead for directories like /tmp, /var/tmp and
/var/cache which are expected to have high turn-over. Let's make them
tmpfs instead
diff --git a/config/livecd-fedora-base-desktop.ks b/config/livecd-fedora-base-desktop.ks
index ad5ec32..dc6bed7 100644
--- a/config/livecd-fedora-base-desktop.ks
+++ b/config/livecd-fedora-base-desktop.ks
@@ -130,6 +130,14 @@ chkconfig --level 345 anacron off 2>/dev/null
chkconfig --level 345 readahead_early off 2>/dev/null
chkconfig --level 345 readahead_later off 2>/dev/null
+# make it so that we don't do writing to the overlay for things which
+# are just tmpdirs/caches
+mount -t tmpfs varcache /tmp
+(cd /var/cache ; find .) | (cd /tmp ; cpio --quiet -pmdu)
+mount --move /tmp /var/cache
+mount -t tmpfs tmp /tmp
+mount -t tmpfs vartmp /var/tmp
+
# Stopgap fix for RH #217966; should be fixed in HAL instead
touch /media/.hal-mtab
More information about the livecd
mailing list