diff options
author | Mike Fulbright <msf@redhat.com> | 2002-06-23 05:35:04 +0000 |
---|---|---|
committer | Mike Fulbright <msf@redhat.com> | 2002-06-23 05:35:04 +0000 |
commit | f1191862b788175e5ffec5d8aae1518f507afa99 (patch) | |
tree | ed6ba520134fed59924c216b40d8036ecf00e85b | |
parent | 99e9e3da9f904d8cad9ce97b6e6892c968170d34 (diff) | |
download | anaconda-f1191862b788175e5ffec5d8aae1518f507afa99.tar.gz anaconda-f1191862b788175e5ffec5d8aae1518f507afa99.tar.xz anaconda-f1191862b788175e5ffec5d8aae1518f507afa99.zip |
save origfstype if lv is preexisting
-rw-r--r-- | partRequests.py | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/partRequests.py b/partRequests.py index 323aab8ff..bf113df08 100644 --- a/partRequests.py +++ b/partRequests.py @@ -718,9 +718,18 @@ class LogicalVolumeRequestSpec(RequestSpec): percent is the percentage of the volume group's space this should use. """ - RequestSpec.__init__(self, fstype = fstype, format = format, - mountpoint = mountpoint, size = size, - preexist = preexist) + # if it's preexisting, the original fstype should be set + if preexist == 1: + origfs = fstype + else: + origfs = None + + RequestSpec.__init__(self, fstype = fstype, format = format, + mountpoint = mountpoint, size = size, + preexist = preexist, origfstype = origfs) + + + self.type = REQUEST_LV self.logicalVolumeName = lvname |