1
1
mirror of https://pagure.io/fedora-kickstarts.git synced 2024-11-22 15:33:07 +00:00

livemedia-creator uses dnf so get rid of the migration bits.

do not mount /var/cache/yum as it makes no sense

Signed-off-by: Dennis Gilmore <dennis@ausil.us>
This commit is contained in:
Dennis Gilmore 2016-02-19 17:02:56 -06:00
parent 55fdac893b
commit abdadb9819

View File

@ -285,21 +285,11 @@ 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
# As livecd-creator is still yum based, we only get yum's yumdb during the
# image compose. Migrate this over to dnf so that dnf and PackageKit can keep
# track where packages came from.
if [ ! -d /var/lib/dnf ]; then
mkdir -p /var/lib/dnf
mv /var/lib/yum/yumdb /var/lib/dnf/
rm -rf /var/lib/yum/
fi
# make it so that we don't do writing to the overlay for things which # make it so that we don't do writing to the overlay for things which
# are just tmpdirs/caches # are just tmpdirs/caches
# note https://bugzilla.redhat.com/show_bug.cgi?id=1135475 # note https://bugzilla.redhat.com/show_bug.cgi?id=1135475
cat >> /etc/fstab << EOF cat >> /etc/fstab << EOF
vartmp /var/tmp tmpfs defaults 0 0 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 EOF
# work around for poor key import UI in PackageKit # work around for poor key import UI in PackageKit