diskimage-builder/elements
Ian Wienand e42066d685 Cleanup yum downloading
Using "yum --downloadonly" breaks the abstraction of
"install-packages" because it downloads to the yum cache.  It also
acts funny if the package is already there.

Add an argument to "-d" which is the directory to download to.  dnf
has "download" built in, and for the old case use yumdownloader which
acts about the same.  Ensure it is installed, since it comes in
yum-utils.

Also a slight cleanup of the getopt parsing so it's easier to have the
required argument for -d

Thus we can remove most of the stuff in 15-remove-grub.  The check for
centos6 and it's lack of grub2 is clarified.  All the stuff about
having to remove the package, purging the cache etc so yum gets the
right thing is no longer relevant.  The long section of commented out
code at the end is also removed for clarity.

I tested this with an F21, F22 & centos (6) build

Change-Id: Id1e430e7d050a0b99ac449e2ea435e06cda1c4e6
2015-07-20 09:08:06 +10:00
..
apt-conf Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
apt-preferences Merge "Fix unbound variables in apt-{preferences,sources}" 2015-03-04 02:49:34 +00:00
apt-sources Initial element tests 2015-05-17 02:07:40 +00:00
architecture-emulation-binaries Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
baremetal Merge "Turn docs warnings into errors and fix issues" 2015-05-06 17:48:16 +00:00
base Merge "Make managing hosts entries optional" 2015-05-12 13:29:48 +00:00
cache-url Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
centos CentOS-6 resize support 2015-06-03 09:13:00 -07:00
centos7 Merge "Use Centos 7 cloud image symlink" 2015-05-20 19:08:46 +00:00
centos-minimal Port centos-minimal to yum-minimal 2015-04-22 20:34:48 -04:00
cleanup-kernel-initrd Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
cloud-init-datasources Simple-init should disable cloud-init 2015-05-11 16:55:02 +00:00
cloud-init-nocloud Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
debian Add debian build test case 2015-05-19 19:23:53 +00:00
debian-minimal Install debian locales 2015-05-19 19:22:43 +00:00
debian-systemd Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
debian-upstart Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
debootstrap debootstrap: fix syntax issues 2015-05-05 11:00:10 +02:00
deploy Create docs site containing element READMEs 2015-02-10 11:45:35 -08:00
deploy-baremetal Create docs site containing element READMEs 2015-02-10 11:45:35 -08:00
deploy-ironic Wait longer for root device to become available 2015-06-17 11:53:57 -05:00
deploy-kexec Create docs site containing element READMEs 2015-02-10 11:45:35 -08:00
deploy-targetcli Optimize Python install in deploy-targetcli 2015-06-22 13:19:14 -05:00
deploy-tgtadm No markdown docs for elements 2015-04-02 23:55:19 +00:00
devuser Add generic devuser element 2015-04-08 07:01:24 +00:00
dhcp-all-interfaces Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
dib-init-system Split dib-init-system into its own element 2015-03-25 13:28:38 -04:00
dib-run-parts/root.d Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
disable-selinux/post-install.d Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
dkms Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
dpkg Download of translations not properly disabled in APT 2015-03-25 15:23:45 -04:00
dracut-network Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
dracut-ramdisk Make troubleshoot work with dracut ramdisks 2015-04-08 12:54:32 -05:00
element-manifest Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
enable-serial-console Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
epel epel: support centos element 2015-05-06 15:49:59 +02:00
fedora Add YUM variable to for Fedora >= 22 2015-06-24 09:20:45 +10:00
fedora-minimal Add a yum-minimal element that just uses yum 2015-04-14 13:39:18 -04:00
grub2 Add grub2 element 2015-06-02 05:35:03 +00:00
hwburnin Create docs site containing element READMEs 2015-02-10 11:45:35 -08:00
hwdiscovery Create docs site containing element READMEs 2015-02-10 11:45:35 -08:00
ilo Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
install-static Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
install-types Break install-types out of base 2015-04-14 13:39:18 -04:00
ironic-agent Removes hardcoded refrences for ethernet interface 2015-07-08 07:14:06 +05:30
ironic-discoverd-ramdisk Fix incorrect package name dmidecoded to dmidecode 2015-03-11 01:04:37 +00:00
iso Merge "Add grub2 element" 2015-06-03 10:48:18 +00:00
local-config Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
manifests Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
mellanox Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
modprobe-blacklist Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
oat-client Add oat-client element 2015-06-26 09:57:12 +08:00
opensuse openSUSE update 2015-04-14 21:53:38 +02:00
package-installs Merge "package-installs: fix error case for Python 2.6" 2015-05-07 17:25:54 +00:00
pip-cache Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
pkg-map Turn docs warnings into errors and fix issues 2015-04-27 15:03:19 +00:00
pypi Merge "Allow setting DIB_PIP_RETRIES" 2015-04-23 03:51:57 +00:00
ramdisk Merge "Add element ubuntu-signed to provide signed kernel" 2015-04-28 11:02:44 +00:00
ramdisk-base Merge "Address comments on virtual media device label commit" 2015-05-11 19:36:26 +00:00
rax-nova-agent rax-nova-agent: switch to $DISTRO_NAME 2015-05-12 17:48:49 +02:00
redhat-common Cleanup yum downloading 2015-07-20 09:08:06 +10:00
rhel Use shorter temporary file names for kpartx 2015-04-21 10:36:33 +02:00
rhel7 force arch amd64 for EL7 elements 2015-05-04 14:18:51 +02:00
rhel-common rhel-common element should not use attach with activation key 2015-05-25 07:18:47 -04:00
rpm-distro Work around yum/dnf differences 2015-06-24 09:20:45 +10:00
select-boot-kernel-initrd Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
selinux-permissive Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
serial-console Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
simple-init Use the init scripts from the glean package 2015-06-27 12:51:25 -04:00
source-repositories Allow source-repositories ref to be "*" 2015-06-24 20:50:06 +00:00
stable-interface-names Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
svc-map Turn docs warnings into errors and fix issues 2015-04-27 15:03:19 +00:00
uboot Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
ubuntu Set DIB_RELEASE in ubuntu element 2015-03-04 23:11:27 +00:00
ubuntu-core Use shorter temporary file names for kpartx 2015-04-21 10:36:33 +02:00
ubuntu-minimal Split the debootstrap functions into an element 2015-04-26 18:04:59 +00:00
ubuntu-signed Add element ubuntu-signed to provide signed kernel 2015-04-12 11:36:17 -07:00
vm vm: use $DISTRO_NAME instead of lsb_release 2015-05-12 17:49:03 +02:00
yum Cleanup yum downloading 2015-07-20 09:08:06 +10:00
yum-minimal Add a yum-minimal element that just uses yum 2015-04-14 13:39:18 -04:00
zypper Standarise tracing for scripts 2015-02-12 10:41:32 +11:00