Re: [PATCH] Fix pruning of destroy actions for preexisting devices.

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

 



I trust you know what you're doing here, so ack,

Regards,

Hans


David Lehman wrote:
If a device is preexisting, we should prune all actions on that
device up through the last destroy action.
---
 storage/devicetree.py |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/storage/devicetree.py b/storage/devicetree.py
index f7582ac..2b997b5 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

_______________________________________________
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