[PATCH] use newer mke2fs arguments for different filesystems

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



We had been hard-coding various args to mke2fs to try to get
what we wanted, but newer mke2fs supports "-t $TYPE" which
is much simpler, and harder to get wrong.

I must admit to not actually testing this patch, though.

-Eric

Index: anaconda-11.4.1.20/anaconda.spec
===================================================================
--- anaconda-11.4.1.20.orig/anaconda.spec	2008-07-25 15:20:13.000000000 -0500
+++ anaconda-11.4.1.20/anaconda.spec	2008-07-29 08:46:15.313290988 -0500
@@ -32,12 +32,13 @@ BuildRoot: %{_tmppath}/%{name}-%{version
 %define libbdevidver 5.1.2-1
 %define rhpxlver 0.25
 %define desktopfileutilsver 0.8
+%define e2fsver 1.41.0
 
 BuildRequires: audit-libs-devel
 BuildRequires: booty
 BuildRequires: bzip2-devel
 BuildRequires: device-mapper-devel >= %{dmver}
-BuildRequires: e2fsprogs-devel
+BuildRequires: e2fsprogs-devel >= %{e2fsver}
 BuildRequires: elfutils-devel
 BuildRequires: gettext >= %{gettextver}
 BuildRequires: gtk2-devel
@@ -84,7 +85,7 @@ Requires: system-config-date >= %{syscfg
 Requires: device-mapper >= %{dmver}
 Requires: device-mapper-libs >= %{dmver}
 Requires: dosfstools
-Requires: e2fsprogs
+Requires: e2fsprogs >= %{e2fsver}
 %ifarch %{ix86} x86_64 ia64
 Requires: dmidecode
 %endif
Index: anaconda-11.4.1.20/fsset.py
===================================================================
--- anaconda-11.4.1.20.orig/fsset.py	2008-07-25 15:20:13.000000000 -0500
+++ anaconda-11.4.1.20/fsset.py	2008-07-29 08:42:36.711291619 -0500
@@ -723,7 +723,7 @@ class ext3FileSystem(extFileSystem):
     def __init__(self):
         extFileSystem.__init__(self)
         self.name = "ext3"
-        self.extraFormatArgs = [ "-j" ]
+        self.extraFormatArgs = [ "-t ext3" ]
         self.partedFileSystemType = parted.file_system_type_get("ext3")
         if flags.cmdline.has_key("ext4"):
             self.migratetofs = ['ext4dev']
@@ -757,8 +757,7 @@ class ext4FileSystem(extFileSystem):
         extFileSystem.__init__(self)
         self.name = "ext4dev"
         self.partedFileSystemType = parted.file_system_type_get("ext3")
-	# 256-byte inodes are actually default now, but let's be sure.
-        self.extraFormatArgs = [ "-j", "-I", "256", "-E", "test_fs" ]
+        self.extraFormatArgs = [ "-t ext4dev" ]
 
         # this is way way experimental at present...
         if flags.cmdline.has_key("ext4"):

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux