diff options
author | Peter Jones <pjones@redhat.com> | 2008-04-08 16:31:31 -0400 |
---|---|---|
committer | Peter Jones <pjones@pjones2.localdomain> | 2008-04-08 16:31:31 -0400 |
commit | 52b298adb35cf71db08118af0096f1fa86b66686 (patch) | |
tree | a0ef0b4470a0f2245c88cc6c1b4ea6ff6690481c /fsset.py | |
parent | 441ccff98ec88d3ecfc9c6926ff2e0d17801678f (diff) | |
download | anaconda-52b298adb35cf71db08118af0096f1fa86b66686.tar.gz anaconda-52b298adb35cf71db08118af0096f1fa86b66686.tar.xz anaconda-52b298adb35cf71db08118af0096f1fa86b66686.zip |
Use umask=0077,shortname=winnt on all vfat filesystems.
Pass mount options to isys.mount.
Diffstat (limited to 'fsset.py')
-rw-r--r-- | fsset.py | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -217,7 +217,8 @@ class FileSystemType: mountpoint, self.getMountName())) isys.mount(device, "%s/%s" %(instroot, mountpoint), fstype = self.getMountName(), - readOnly = readOnly, bindMount = bindMount) + readOnly = readOnly, bindMount = bindMount, + options = self.defaultOptions) if flags.selinux: ret = isys.resetFileContext(mountpoint, instroot) @@ -939,6 +940,7 @@ class FATFileSystem(FileSystemType): self.maxSizeMB = 1024 * 1024 self.name = "vfat" self.packages = [ "dosfstools" ] + self.defaultOptions = "umask=0077,shortname=winnt" def formatDevice(self, entry, progress, chroot='/'): devicePath = entry.device.setupDevice(chroot) @@ -980,10 +982,9 @@ class EFIFileSystem(FATFileSystem): def __init__(self): FATFileSystem.__init__(self) self.name = "efi" - self.partedFileSystemType = parted.file_system_type_get("fat32") self.partedPartitionFlags = [ parted.PARTITION_BOOT ] self.maxSizeMB = 256 - self.defaultOptions = "uid=0,gid=0,umask=0077,shortname=winnt" + self.defaultOptions = "umask=0077,shortname=winnt" def getMountName(self, quoted = 0): return "vfat" |