summaryrefslogtreecommitdiffstats
path: root/partedUtils.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2005-01-05 02:00:14 +0000
committerJeremy Katz <katzj@redhat.com>2005-01-05 02:00:14 +0000
commitf1cd1402e1ecf9935915a4719c395276cee0b7d7 (patch)
tree3c26a8a959ee5f3baa5fa8783ddc8f4446c45801 /partedUtils.py
parent6df7884510dde3816db62a2ebc333ea75e124d6b (diff)
downloadanaconda-f1cd1402e1ecf9935915a4719c395276cee0b7d7.tar.gz
anaconda-f1cd1402e1ecf9935915a4719c395276cee0b7d7.tar.xz
anaconda-f1cd1402e1ecf9935915a4719c395276cee0b7d7.zip
2005-01-04 Jeremy Katz <katzj@redhat.com>
* partedUtils.py (getDefaultDiskType): the default disk type on s390 should be dasd, but we can't format those with parted and if we get here, we're formatting an fcp disk which should be msdos (#144199)
Diffstat (limited to 'partedUtils.py')
-rw-r--r--partedUtils.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/partedUtils.py b/partedUtils.py
index c38d849c6..cccd46bd3 100644
--- a/partedUtils.py
+++ b/partedUtils.py
@@ -236,7 +236,11 @@ def getDefaultDiskType():
elif iutil.getArch() == "ia64":
return parted.disk_type_get("gpt")
elif iutil.getArch() == "s390":
- return parted.disk_type_get("dasd")
+ # the "default" type is dasd, but we don't really do dasd
+ # formatting with parted and use dasdfmt directly for them
+ # so if we get here, it's an fcp disk and we should write
+ # an msdos partition table (#144199)
+ return parted.disk_type_get("msdos")
elif iutil.getArch() == "alpha":
return parted.disk_type_get("bsd")
elif iutil.getArch() == "sparc":