Files
diskimage-builder/elements
Ian Wienand 283c9705c0 Reset yum/dnf cache to correct location
Make sure we reset the yum/dnf cache to /var/cache/${YUM}, not just
/var/cache/yum

This was resulting in the F22 fedora-minimal image being larger than
the base-image.  Because F22 fedora-minimal does some installs with
dnf when bootstrapping the chroot before we set "cachedir=" to the
bind-mounted external cache, we have "/var/cache/dnf" created and and
populated with the package meta-data, etc.

When we globally point dnf to /var/cache/yum here, we effectively
orphan the /var/cache/dnf created in those first steps.  dnf doesn't
care, but we end up with two copies of all the package metadata, etc
in "/var/cache/dnf" & "/var/cache/yum".

This also cleans up the sed a bit, by just replacing the lines.

Change-Id: Icc98fe30c34cb941aed4b987647ab67ac34af15a
2015-10-14 06:36:06 +11:00
..
2015-05-17 02:07:40 +00:00
2015-02-12 10:41:32 +11:00
2015-04-08 07:01:24 +00:00
2015-09-21 17:28:33 +01:00
2015-06-02 05:35:03 +00:00
2015-02-12 10:41:32 +11:00
2015-09-23 23:55:18 -07:00
2015-02-12 10:41:32 +11:00
2015-02-12 10:41:32 +11:00
2015-06-26 09:57:12 +08:00
2015-07-01 22:03:50 +02:00
2015-02-12 10:41:32 +11:00
2015-05-04 14:18:51 +02:00
2015-02-12 10:41:32 +11:00
2015-03-04 23:11:27 +00:00
2015-02-12 10:41:32 +11:00