diff options
author | David Lehman <dlehman@redhat.com> | 2009-03-19 02:10:48 -0500 |
---|---|---|
committer | David Lehman <dlehman@redhat.com> | 2009-03-19 02:10:48 -0500 |
commit | 9abfdc92a55618e6b2994c19fede8316405fb832 (patch) | |
tree | f9785491c104be219066d993ffbb4e62349f2253 | |
parent | e5371fffaee326c0e2132a97441c50ca032ced89 (diff) | |
download | anaconda-9abfdc92a55618e6b2994c19fede8316405fb832.tar.gz anaconda-9abfdc92a55618e6b2994c19fede8316405fb832.tar.xz anaconda-9abfdc92a55618e6b2994c19fede8316405fb832.zip |
Fix pruning of destroy actions for preexisting devices.
If a device is preexisting, we should prune all actions on that
device up through the last destroy action.
-rw-r--r-- | storage/devicetree.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/storage/devicetree.py b/storage/devicetree.py index f7582aced..2b997b58e 100644 --- a/storage/devicetree.py +++ b/storage/devicetree.py @@ -223,6 +223,11 @@ class DeviceTree(object): # this device is not preexisting start = first_create_idx stop_action = destroys[-1] + else: + # no create actions means this is a preexisting device, + # so we prune all actions up through the last destroy. + start = 0 + stop_action = destroys[-1] if start is None: continue |