summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Sivak <msivak@redhat.com>2008-12-12 13:03:32 +0100
committerMartin Sivak <msivak@redhat.com>2008-12-12 13:03:32 +0100
commita739e9d8426b79d17aef86c01817278a17ee7fae (patch)
treeb23e10947311027284d4964ce488edfc4ee88206
parentdbb5a3b88296ada7c28879658c75298f56248336 (diff)
downloadanaconda-a739e9d8426b79d17aef86c01817278a17ee7fae.tar.gz
anaconda-a739e9d8426b79d17aef86c01817278a17ee7fae.tar.xz
anaconda-a739e9d8426b79d17aef86c01817278a17ee7fae.zip
Protect installation source partition from deletion (#461855)
-rw-r--r--autopart.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/autopart.py b/autopart.py
index e25b36664..e0181fb04 100644
--- a/autopart.py
+++ b/autopart.py
@@ -1460,6 +1460,7 @@ def doAutoPartition(dir, diskset, partitions, intf, instClass, dispatch):
except PartitioningError, msg:
# restore drives to original state
diskset.refreshDevices()
+ partitions.setProtected(dispatch)
partitions.setFromDisk(diskset)
if not isKickstart:
extra = ""