diff options
author | Matt Wilson <msw@redhat.com> | 2001-08-07 21:42:37 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 2001-08-07 21:42:37 +0000 |
commit | 2b251841a6b8781df8af19c44a2c8c37ba9c2c01 (patch) | |
tree | 870d6aa077570c8e73e7d8bd8f4077bc9d7d6379 /partitioning.py | |
parent | 51854ab7d8235c036444b35334e5e18ab8384385 (diff) | |
download | anaconda-2b251841a6b8781df8af19c44a2c8c37ba9c2c01.tar.gz anaconda-2b251841a6b8781df8af19c44a2c8c37ba9c2c01.tar.xz anaconda-2b251841a6b8781df8af19c44a2c8c37ba9c2c01.zip |
if we fail to mount ext2 filesystems on md devices, give ext3 a try. (#51145)
register the raid devices we mkraid with the partitioning layer
hup the raid devices and start the existing ones so we can pull labels off them in case we have a label conflict(#51148)
Diffstat (limited to 'partitioning.py')
-rw-r--r-- | partitioning.py | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/partitioning.py b/partitioning.py index 136568a86..64ee9812a 100644 --- a/partitioning.py +++ b/partitioning.py @@ -213,6 +213,10 @@ def get_raid_devices(requests): return raidRequests +def register_raid_device(mdname): + if mdname in DiskSet.mdList: + raise ValueError, "%s is already in the mdList!" % (mdname,) + DiskSet.mdList.append(mdname) # returns a list of tuples of raid partitions which can be used or are used # with whether they're used (0 if not, 1 if so) eg (part, size, used) @@ -1225,17 +1229,21 @@ class DiskSet: self.startAllRaid() for dev in self.mdList: - # XXX multifsify + # XXX multifsify. + # XXX NOTE! reiserfs isn't supported on software raid devices. if not fsset.isValidExt2 (dev): continue try: isys.mount(dev, '/mnt/sysimage', readOnly = 1) except SystemError, (errno, msg): - intf.messageWindow(_("Error"), - _("Error mounting filesystem " - "on %s: %s") % (dev, msg)) - continue + try: + isys.mount(dev, '/mnt/sysimage', readOnly = 1, "ext3") + except SystemError, (errno, msg): + intf.messageWindow(_("Error"), + _("Error mounting filesystem " + "on %s: %s") % (dev, msg)) + continue if os.access ('/mnt/sysimage/etc/fstab', os.R_OK): rootparts.append ((dev, "ext2")) isys.umount('/mnt/sysimage') |