diskimage-builder/elements/fedora-minimal
Martin André d8a0e13261 Fix uniqueness check of initrd in fedora-minimal
The check suffered from various flaws.

First, due to missing quotes around $initrd, 'wc -l' would always see
1 line no matter how many results the find returned.

Second, echo adds a line break making 'wc -l' count 1 even for empty
string. We need to add a check for empty string.

Change-Id: Ib2c67960f566dbdc471d9585a4cef1beb1cc38ab
Closes-Bug: #1506692
2015-11-04 06:23:17 +11:00
..
environment.d Update default fedora-minimal to f22 2015-10-14 06:36:06 +11:00
install.d Fix uniqueness check of initrd in fedora-minimal 2015-11-04 06:23:17 +11:00
yum.repos.d Add a yum-minimal element that just uses yum 2015-04-14 13:39:18 -04:00
element-deps Add a yum-minimal element that just uses yum 2015-04-14 13:39:18 -04:00
element-provides Add a yum-minimal element that just uses yum 2015-04-14 13:39:18 -04:00
README.rst Add a yum-minimal element that just uses yum 2015-04-14 13:39:18 -04:00

==============
fedora-minimal
==============
Create a minimal image based on Fedora.

Use of this element will require 'yum' and 'yum-utils' to be installed on
Ubuntu and Debian. Nothing additional is needed on Fedora or CentOS. The
element will need `python-lzma` everywhere.

Due to a bug in the released version of urlgrabber, on many systems an
installation of urlgrabber from git is required. The git repository
can be found here: http://yum.baseurl.org/gitweb?p=urlgrabber.git;a=summary

The `DIB_OFFLINE` or more specific `DIB_YUMCHROOT_USE_CACHE`
variables can be set to prefer the use of a pre-cached root filesystem
tarball.

This element sets the `DIB_RELEASE` var to 'fedora'. The release of fedora
to be installed can be controlled through the `DIB_RELEASE` variable, which
defaults to '21'.