summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2001-07-31 18:44:54 +0000
committerJeremy Katz <katzj@redhat.com>2001-07-31 18:44:54 +0000
commitd9cdad6a8c44646b6da57417422cc57a28a03ffc (patch)
tree5fd1a5b4ff8801fc01e112e9f734ea4c11497d9d
parent14ce9ce6babdbbf14162419ab7dd293a5314ab35 (diff)
downloadanaconda-d9cdad6a8c44646b6da57417422cc57a28a03ffc.tar.gz
anaconda-d9cdad6a8c44646b6da57417422cc57a28a03ffc.tar.xz
anaconda-d9cdad6a8c44646b6da57417422cc57a28a03ffc.zip
copy the request before changing it so we can go back and do autopartitioning again (50479)
-rw-r--r--autopart.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/autopart.py b/autopart.py
index 0c9543ccd..028b8ad9c 100644
--- a/autopart.py
+++ b/autopart.py
@@ -15,6 +15,7 @@
import parted
import math
+import copy
import string, sys
import fsset
from partitioning import *
@@ -860,9 +861,10 @@ def doAutoPartition(dir, diskset, partitions, intf, instClass):
req.format = 1
req.fstype = request.fstype
else:
- if not request.drive:
- request.drive = drives
- partitions.addRequest(request)
+ req = copy.copy(request)
+ if not req.drive:
+ req.drive = drives
+ partitions.addRequest(req)
# sanity checks for the auto partitioning requests; mostly only useful
# for kickstart as our installclass defaults SHOULD be sane