diff options
author | Jeremy Katz <katzj@redhat.com> | 2006-06-09 20:25:49 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2006-06-09 20:25:49 +0000 |
commit | e16aec2d0892f391da7cfb8d2474602b5e924698 (patch) | |
tree | 4d2ada37c0599e306ef8f607cfff564364b3d61b /partedUtils.py | |
parent | e22389a8eb7fbfbe81bac961bc86775ff7347205 (diff) | |
download | anaconda-e16aec2d0892f391da7cfb8d2474602b5e924698.tar.gz anaconda-e16aec2d0892f391da7cfb8d2474602b5e924698.tar.xz anaconda-e16aec2d0892f391da7cfb8d2474602b5e924698.zip |
2006-06-09 Jeremy Katz <katzj@redhat.com>
* partitions.py (Partitions.sanityCheckAllRequests): Sanity check
to ensure /boot on the mactels is on one of the first 4 parts
* partedUtils.py (DiskSet.savePartitions): Use gptsync to sync
gpt->mbr on mactels
(archLabels): Allow gpt on i386, x86_64
* bootloader.py (bootloaderSetupChoices): mactels need their
bootloader on the partition.
Diffstat (limited to 'partedUtils.py')
-rw-r--r-- | partedUtils.py | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/partedUtils.py b/partedUtils.py index b5572e03e..7dc88f90b 100644 --- a/partedUtils.py +++ b/partedUtils.py @@ -272,13 +272,13 @@ def getDefaultDiskType(): else: return parted.disk_type_get("msdos") -archLabels = {'i386': ['msdos'], +archLabels = {'i386': ['msdos', 'gpt'], 's390': ['dasd', 'msdos'], 'alpha': ['bsd', 'msdos'], 'sparc': ['sun'], 'ia64': ['msdos', 'gpt'], 'ppc': ['msdos', 'mac', 'amiga'], - 'x86_64': ['msdos']} + 'x86_64': ['msdos', 'gpt']} # this is kind of crappy, but we don't really want to allow LDL formatted # dasd to be used during the install @@ -792,7 +792,12 @@ class DiskSet: """Write the partition tables out to the disks.""" for disk in self.disks.values(): disk.commit() - #disk.close() + # FIXME: this belongs in parted itself, but let's do a hack... + if iutil.isMactel() and disk.type.name == "gpt" and \ + os.path.exists("/usr/sbin/gptsync"): + iutil.execWithRedirect("/usr/sbin/gptsync", + ["gptsync", disk.dev.path], + stdout="/dev/tty5", stderr="/dev/tty5") del disk self.refreshDevices() |