diff options
author | Eric Sandeen <sandeen@redhat.com> | 2008-01-31 11:19:54 -0600 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2008-01-31 14:22:26 -0500 |
commit | 84df7e2ae23ab82ccf5c841291d6030afa8a6a28 (patch) | |
tree | b85dedb530a6798e0424d3ce97792eb7e6f8d14b /fsset.py | |
parent | 33cb3ec95c4bd6ca0af10b137e3c1061a148d787 (diff) | |
download | anaconda-84df7e2ae23ab82ccf5c841291d6030afa8a6a28.tar.gz anaconda-84df7e2ae23ab82ccf5c841291d6030afa8a6a28.tar.xz anaconda-84df7e2ae23ab82ccf5c841291d6030afa8a6a28.zip |
fsset.py tweaks for ext4dev & xfs
ext4dev just got a "test_fs" flag which soon must be set in order for
the kernel to mount it; this will prevent ext3 from accidentally getting
mounted as ext4, and making it hard to go back. (when ext4 goes prime-time,
the need for this flag will be removed).
Also tweak the xfs class a bit; most mkfs arguments specified are actually
defaults now, and there is a nicer labeling command available, xfs_admin - a
665-byte bash script which I added to upd-instroot too.
Diffstat (limited to 'fsset.py')
-rw-r--r-- | fsset.py | 14 |
1 files changed, 6 insertions, 8 deletions
@@ -411,9 +411,7 @@ class xfsFileSystem(FileSystemType): def formatDevice(self, entry, progress, chroot='/'): devicePath = entry.device.setupDevice(chroot) - rc = iutil.execWithRedirect("mkfs.xfs", - ["-f", "-l", "internal", - "-i", "attr=2", devicePath], + rc = iutil.execWithRedirect("mkfs.xfs", ["-f", devicePath], stdout = "/dev/tty5", stderr = "/dev/tty5", searchPath = 1) @@ -424,9 +422,8 @@ class xfsFileSystem(FileSystemType): devicePath = entry.device.setupDevice(chroot) label = labelFactory.createLabel(entry.mountpoint, self.maxLabelChars, kslabel = entry.label) - db_cmd = "label " + label - rc = iutil.execWithRedirect("xfs_db", - ["-x", "-c", db_cmd, devicePath], + rc = iutil.execWithRedirect("xfs_admin", + ["-L", label, devicePath], stdout = "/dev/tty5", stderr = "/dev/tty5", searchPath = 1) if rc: @@ -718,9 +715,10 @@ class ext4FileSystem(extFileSystem): extFileSystem.__init__(self) self.name = "ext4dev" self.partedFileSystemType = parted.file_system_type_get("ext3") - self.extraFormatArgs = [ "-j", "-I", "256" ] + # 256-byte inodes are actually default now, but let's be sure. + self.extraFormatArgs = [ "-j", "-I", "256", "-E", "test_fs" ] - # this is way way way experimental at present... + # this is way way experimental at present... if flags.cmdline.has_key("iamanext4developer"): self.supported = -1 else: |