commit 629c19368cb0bbe47f69e12e48b7160ac0cde670
Author: Adam Williamson <awilliam(a)redhat.com>
Date: Tue Sep 2 08:39:35 2014 -0700
set up tmpfs in fstab, not livesys service (fixes #1135475)
fedora-live-base.ks | 14 ++++++++------
1 files changed, 8 insertions(+), 6 deletions(-)
---
diff --git a/fedora-live-base.ks b/fedora-live-base.ks
index 9929fb7..395f6da 100644
--- a/fedora-live-base.ks
+++ b/fedora-live-base.ks
@@ -156,12 +156,6 @@ if ! strstr "\`cat /proc/cmdline\`" nopersistenthome
&& [ -n "\$homedev" ] ; the
action "Mounting persistent /home" mountPersistentHome
fi
-# make it so that we don't do writing to the overlay for things which
-# are just tmpdirs/caches
-mount -t tmpfs -o mode=0755 varcacheyum /var/cache/yum
-mount -t tmpfs vartmp /var/tmp
-[ -x /sbin/restorecon ] && /sbin/restorecon /var/cache/yum /var/tmp >/dev/null
2>&1
-
if [ -n "\$configdone" ]; then
exit 0
fi
@@ -275,6 +269,14 @@ chmod 755 /etc/rc.d/init.d/livesys-late
# enable tmpfs for /tmp
systemctl enable tmp.mount
+# make it so that we don't do writing to the overlay for things which
+# are just tmpdirs/caches
+# note
https://bugzilla.redhat.com/show_bug.cgi?id=1135475
+cat >> /etc/fstab << EOF
+vartmp /var/tmp tmpfs defaults 0 0
+varcacheyum /var/cache/yum tmpfs
mode=0755,context=system_u:object_r:rpm_var_cache_t:s0 0 0
+EOF
+
# work around for poor key import UI in PackageKit
rm -f /var/lib/rpm/__db*
releasever=$(rpm -q --qf '%{version}\n' --whatprovides system-release)