diff options
author | Matt Wilson <msw@redhat.com> | 2001-07-10 23:57:29 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 2001-07-10 23:57:29 +0000 |
commit | 740fcec9ece992397487362b822b4c2c16a04e80 (patch) | |
tree | 247e493783176e4236cb41f10c94e1c7c0a2cac9 /partitioning.py | |
parent | d26cfef965b7a4bd2cead5e316af23984f56c956 (diff) | |
download | anaconda-740fcec9ece992397487362b822b4c2c16a04e80.tar.gz anaconda-740fcec9ece992397487362b822b4c2c16a04e80.tar.xz anaconda-740fcec9ece992397487362b822b4c2c16a04e80.zip |
skip RAID/LVM partitions when looking for existings roots
Diffstat (limited to 'partitioning.py')
-rw-r--r-- | partitioning.py | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/partitioning.py b/partitioning.py index 1bfa84a0a..24aa96b97 100644 --- a/partitioning.py +++ b/partitioning.py @@ -850,7 +850,14 @@ class DiskSet: disk = self.disks[drive] part = disk.next_partition () while part: - if part.fs_type and (part.fs_type.name == "ext2" + if (part.is_active() + and (part.get_flag(parted.PARTITION_RAID) + or part.get_flag(parted.PARTITION_LVM))): + # skip RAID and LVM partitions. + # XXX check for raid superblocks on non-autoraid partitions + # (#32562) + pass + elif part.fs_type and (part.fs_type.name == "ext2" or part.fs_type.name == "ext3" or part.fs_type.name == "reiserfs"): node = get_partition_name(part) @@ -865,7 +872,7 @@ class DiskSet: if os.access ('/mnt/sysimage/etc/fstab', os.R_OK): rootparts.append ((node, part.fs_type.name)) isys.umount('/mnt/sysimage') - if part.fs_type and (part.fs_type.name == "FAT"): + elif part.fs_type and (part.fs_type.name == "FAT"): try: isys.mount(node, '/mnt/sysimage', fstype = "vfat", readOnly = 1) |