diff options
author | Jeremy Katz <katzj@redhat.com> | 2002-09-10 19:22:55 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2002-09-10 19:22:55 +0000 |
commit | a31e78d2e43ff0f3cb46c040122370f68428cc0a (patch) | |
tree | 1fc10acf636444cba5eb38764835b438482bc216 /autopart.py | |
parent | c6e1ba00c7a44d2160b57017ca5c290d1f438d02 (diff) | |
download | anaconda-a31e78d2e43ff0f3cb46c040122370f68428cc0a.tar.gz anaconda-a31e78d2e43ff0f3cb46c040122370f68428cc0a.tar.xz anaconda-a31e78d2e43ff0f3cb46c040122370f68428cc0a.zip |
some non-controversial bits of sparc. also pulls in updated loader/stubs.c
which should fix non-diet minilibc build
Diffstat (limited to 'autopart.py')
-rw-r--r-- | autopart.py | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/autopart.py b/autopart.py index 37e136f54..d4b37b3ce 100644 --- a/autopart.py +++ b/autopart.py @@ -799,15 +799,16 @@ def setPreexistParts(diskset, requests, newParts): request.device = partedUtils.get_partition_name(part) if request.fstype: if request.fstype.getName() != request.origfstype.getName(): - if request.fstype.getName() == "software RAID": - part.set_flag(parted.PARTITION_RAID, 1) - else: - part.set_flag(parted.PARTITION_RAID, 0) - - if request.fstype.getName() == "physical volume (LVM)": - part.set_flag(parted.PARTITION_LVM, 1) - else: - part.set_flag(parted.PARTITION_LVM, 0) + if part.is_flag_available(parted.PARTITION_RAID): + if request.fstype.getName() == "software RAID": + part.set_flag(parted.PARTITION_RAID, 1) + else: + part.set_flag(parted.PARTITION_RAID, 0) + if part.is_flag_available(parted.PARTITION_LVM): + if request.fstype.getName() == "physical volume (LVM)": + part.set_flag(parted.PARTITION_LVM, 1) + else: + part.set_flag(parted.PARTITION_LVM, 0) partedUtils.set_partition_file_system_type(part, request.fstype) |