[master 0/5] Running anaconda in mock

Vratislav Podzimek vpodzime at redhat.com
Thu Aug 7 07:31:35 UTC 2014


On Wed, 2014-08-06 at 12:22 -0700, Brian C. Lane wrote:
> The goal of the livemedia-creator project was to be able to generate images
> (disk, filesystem, iso, etc.) using anaconda as the sole source of logic. lmc
> works pretty well for this when used with virt or run from a normal system. But
> one of the big hurdles to its adoption has been problems with running anaconda
> from inside a mock chroot. This was because we depend on system services like
> dbus being available.
> 
> With this set of patches that is no longer a problem.
> 
> When the dbus access attempts fail I've modified the keyboard and network code
> to return defaults that won't crash the installation. In the future we will
> have to keep an eye on changes that depend on system services and setup
> defaults for them so that mock support doesn't end up breaking.
> 
> I am proposing these for master only at this point.
> 
> I have tested with a mock installed with lorax and anaconda-tui packages using
> a minimal kickstart and a slightly modified workstation kickstart. The
> workstation iso boots and can be installed. The only addition to a normal mock
> is that /dev/loopX nodes need to be created. There is no need to bind mount all
> of /dev/ from the host.
> 
> Brian C. Lane (6):
>   Skip syslog for dirinstall
>   Ignore safe_dbus errors in keyboard setup
>   Skip networkInitialize for image and dir installations
>   Modify nm to return defaults when no dbus is available
>   In tui cmdline mode skip showError and log message
>   livemedia-creator: Run setfiles after no-virt installation
> 
>  anaconda                      |  8 +++++---
>  pyanaconda/anaconda_log.py    |  2 +-
>  pyanaconda/keyboard.py        | 28 +++++++++++++++++++---------
>  pyanaconda/network.py         | 42 ++++++++++++++++++++++--------------------
>  pyanaconda/nm.py              | 41 ++++++++++++++++++++++++++++++++---------
>  pyanaconda/ui/tui/__init__.py |  8 ++++++++
>  src/sbin/livemedia-creator    | 10 ++++++++++
>  7 files changed, 97 insertions(+), 42 deletions(-)
Other than that one comment and dshea's suggestion to use
can_touch_runtime_system these all look good to me.

-- 
Vratislav Podzimek

Anaconda Rider | Red Hat, Inc. | Brno - Czech Republic



More information about the anaconda-patches mailing list