From fe13dc4352165287bbd2d20afbfee017ef8a1743 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Tue, 2 Sep 2014 08:39:35 -0700 Subject: [PATCH] set up tmpfs in fstab, not livesys service (fixes #1135475) --- fedora-live-base.ks | 14 ++++++++------ 1 file 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)