[PATCH 0/6] Add ability to run anaconda in a mock for image installs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This builds on dlehman's image install work and adds the ability to run
anaconda from inside a mock when doing image installs using a kickstart
to drive things.

I started out with a stripped down anaconda script (ksimage) but it ended
up not being needed. I include it only because it may be insteresting to
some and won't commit it to the repo.

This adds a new command line mode called 'script' that raises errors instead
of falling into infinite loops when there is a problem with the kickstart. It
also short-circuits the network, assuming that the host already has netowrking
up and running.

Additionally, it adds image cleanup to anaconda proper instead of in the
anaconda-cleanup script -- it ended up that yum.log was being held open by
logging and a simple logging.shutdown() freed that up so we can handle the
unmounts inside anaconda. This is a big plus for error handling, it means
you can fix your kickstart and rerun anaconda without and manual cleanup of
mounted disk images.

I am proposing adding patch 2,3,5,6 to master. The other 2 are for
Informational Purposes Only :)

Brian C. Lane (6):
  Add ksimage, execute kickstart image installs
  Add a script interface that raises errors
  Check for live when umounting
  Add cleanup of mounts to ksimage
  Add switch for script mode and fix graphics check in anaconda
  Add filesystem cleanup to anaconda

 anaconda                 |   29 ++++-
 ksimage                  |  264 ++++++++++++++++++++++++++++++++++++++++++++++
 pyanaconda/__init__.py   |    3 +
 pyanaconda/script.py     |  195 ++++++++++++++++++++++++++++++++++
 scripts/anaconda-cleanup |    7 +-
 5 files changed, 491 insertions(+), 7 deletions(-)
 create mode 100755 ksimage
 create mode 100644 pyanaconda/script.py

-- 
1.7.4.4

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux