[PATCH 13/13] Explicitly set exists=False when creating newPartitions

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

 



For autopartition requests as well as free space regions, set
exists=False when calling newPartition().
---
 storage/partitioning.py |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/storage/partitioning.py b/storage/partitioning.py
index 47800da..7e84489 100644
--- a/storage/partitioning.py
+++ b/storage/partitioning.py
@@ -68,7 +68,8 @@ def _createFreeSpacePartitions(anaconda):
         part = anaconda.id.storage.newPartition(fmt_type=fmt_type,
                                                 size=1,
                                                 grow=True,
-                                                disks=[disk])
+                                                disks=[disk],
+                                                exists=False)
         if part:
             anaconda.id.storage.createDevice(part)
             devs.append(part)
@@ -95,7 +96,8 @@ def _schedulePartitions(anaconda, disks):
                                                grow=grow,
                                                maxsize=maxsize,
                                                mountpoint=mountpoint,
-                                               disks=disks)
+                                               disks=disks,
+                                               exists=False)
 
         # schedule the device for creation
         anaconda.id.storage.createDevice(dev)
-- 
1.6.2

_______________________________________________
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