mirror of
https://pagure.io/fedora-kickstarts.git
synced 2024-11-29 10:23:08 +00:00
set up tmpfs in fstab, not livesys service (fixes #1135475)
This commit is contained in:
parent
72304db676
commit
629c19368c
@ -156,12 +156,6 @@ if ! strstr "\`cat /proc/cmdline\`" nopersistenthome && [ -n "\$homedev" ] ; the
|
|||||||
action "Mounting persistent /home" mountPersistentHome
|
action "Mounting persistent /home" mountPersistentHome
|
||||||
fi
|
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
|
if [ -n "\$configdone" ]; then
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
@ -275,6 +269,14 @@ chmod 755 /etc/rc.d/init.d/livesys-late
|
|||||||
# enable tmpfs for /tmp
|
# enable tmpfs for /tmp
|
||||||
systemctl enable tmp.mount
|
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
|
# work around for poor key import UI in PackageKit
|
||||||
rm -f /var/lib/rpm/__db*
|
rm -f /var/lib/rpm/__db*
|
||||||
releasever=$(rpm -q --qf '%{version}\n' --whatprovides system-release)
|
releasever=$(rpm -q --qf '%{version}\n' --whatprovides system-release)
|
||||||
|
Loading…
Reference in New Issue
Block a user