[master] Patches for installation with live system

Vratislav Podzimek vpodzime at redhat.com
Fri Sep 21 16:38:21 UTC 2012


On Fri, 2012-09-21 at 18:29 +0200, Vratislav Podzimek wrote:
> This patch set changes DateTime and Keyboard spokes not to modify live
> system during liveCD and image installations or during testing. It does
> not contain any changes related to saving/restoring HW clock as we don't
> have such code in master yet. Depending on which patches get pushed first
> I'll add changes that will make HW clock operations not modify live system
> or change HW clock patches directly.
> 
> PATCH 1/3 introduces function, that can be used to check if we can modify
> live system. It saves some typing, adds logging and facilitates testing.
Just one note here:
I've tried (with Martin Gracik's help) to come up with context manager
and the "with" statement for this, but there seems to be no nice way.
The best result looks like this:

with LiveSysGuard() as assert_not_live:
    assert_not_live()
    # problematic actions go here

-- 
Vratislav Podzimek

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



More information about the anaconda-patches mailing list