summaryrefslogtreecommitdiffstats
path: root/fsset.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2001-07-02 22:08:06 +0000
committerJeremy Katz <katzj@redhat.com>2001-07-02 22:08:06 +0000
commit8fd91aa403b11d6055b814a57a78078f9b5a2ebb (patch)
tree4cad4127e8c74464a86773ea913582fc75ca20ae /fsset.py
parent4f36d8b6a087ef48c854e7e5345c822a582d4413 (diff)
downloadanaconda-8fd91aa403b11d6055b814a57a78078f9b5a2ebb.tar.gz
anaconda-8fd91aa403b11d6055b814a57a78078f9b5a2ebb.tar.xz
anaconda-8fd91aa403b11d6055b814a57a78078f9b5a2ebb.zip
more bits for ia64
Diffstat (limited to 'fsset.py')
-rw-r--r--fsset.py30
1 files changed, 28 insertions, 2 deletions
diff --git a/fsset.py b/fsset.py
index 1a28efbdd..c19e79ef9 100644
--- a/fsset.py
+++ b/fsset.py
@@ -324,10 +324,34 @@ class FATFileSystem(FileSystemType):
def __init__(self):
FileSystemType.__init__(self)
self.partedFileSystemType = parted.file_system_type_get("FAT")
- self.formattable = 0
+ self.formattable = 1
self.checked = 0
self.name = "vfat"
+ def formatDevice(self, entry, progress, chroot='/'):
+ devicePath = entry.device.setupDevice(chroot)
+ devArgs = self.getDeviceArgs(entry.device)
+ label = labelFactory.createLabel(entry.mountpoint)
+ entry.setLabel(label)
+ args = [ "/usr/sbin/mkdosfs", devicePath ]
+ args.extend(devArgs)
+
+ rc = iutil.execWithRedirect("/usr/sbin/mkdosfs", args,
+ stdout = "/dev/tty5",
+ stderr = "/dev/tty5")
+ if rc:
+ if self.messageWindow:
+ self.messageWindow(_("Error"),
+ _("An error occurred trying to "
+ "format %s. This problem is "
+ "serious, and the install cannot "
+ "continue.\n\n"
+ "Press Enter to reboot your system.")
+ % (entry.device.getDevice(),))
+ sys.exit(0)
+
+ raise SystemError
+
fileSystemTypeRegister(FATFileSystem())
class ForeignFileSystem(FileSystemType):
@@ -483,7 +507,9 @@ class FileSystemSet:
for entry in self.entries:
mntDict[entry.mountpoint] = entry.device
- if mntDict.has_key("/boot"):
+ if iutil.getArch() == "ia64" and mntDict.has_key("/boot/efi"):
+ bootDev = mntDict['/boot/efi']
+ elif mntDict.has_key("/boot"):
bootDev = mntDict['/boot']
else:
bootDev = mntDict['/']