[rhel7-branch 0/8] Port some patches from master to enable --make-tar

Brian C. Lane bcl at redhat.com
Tue Sep 23 00:28:35 UTC 2014


Most of these are backports from master, slightly modified to fit rhel7. The
--no-recursion patch actually needs to go TO master. Otherwise you get a really
large tar file including the files multiple times.


With these changes you can use a simplified kickstart (eg. using --nocore and
leaving out the kernel) to create a tar file like this:

livemedia-creator --make-tar --no-virt --ks ./rhel7-docker.ks --image-name rhel7.1-docker.tar.bz2 --compression bzip2

Import it into docker:

cat /var/tmp/rhel7.1-docker.tar.bz2 | docker import - rhel7-test

And run it:

docker run -ti rhel7-test /usr/bin/bash

(you need to have docker, lorx and anaconda-tui installed on the build system)

I've also created a pull request for this on github as an experiment. You can
review the patches at:

https://github.com/bcl/lorax/pull/1


Brian C. Lane (8):
  livemedia-creator: Make --make-fsimage work with virt-install
    (#1144140)
  livemedia-creator: Copy fsimage if hardlink fails (#1144140)
  livemedia-creator: Check fsimage kickstart for single partition
    (#1144140)
  livemedia-creator: Add support for making tarfiles (#1144140)
  livemedia-creator: Add --no-recursion to mktar (#1144140)
  RHEL7 doesn't include pigz or pbzip2 (#1144140)
  livemedia-creator: Use RHEL7 version of kickstart (#1144140)
  livemedia-creator: Make sure ROOT_PATH exists (#1144140)

 README.livemedia-creator   |  15 +++++
 docs/livemedia-creator.1   |  27 ++++++++-
 src/pylorax/imgutils.py    |  52 ++++++++++++-----
 src/sbin/livemedia-creator | 135 ++++++++++++++++++++++++++++++++++-----------
 4 files changed, 179 insertions(+), 50 deletions(-)

-- 
1.9.3



More information about the anaconda-patches mailing list