aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXi Ruoyao <xry111@xry111.site>2023-02-19 20:42:33 +0800
committerXi Ruoyao <xry111@xry111.site>2023-02-19 20:42:33 +0800
commit4049a4b6c81d03fe7369473db85f36aa09712076 (patch)
tree222bf4ab91d86aaf117ed33b3398b3bb8fc5d6c4
parentdd8293bfa99afb982601eb1f5401c59167347e33 (diff)
e2fsprogs: Add configuration section about mke2fs.conf
-rw-r--r--chapter08/e2fsprogs.xml27
1 files changed, 27 insertions, 0 deletions
diff --git a/chapter08/e2fsprogs.xml b/chapter08/e2fsprogs.xml
index bccf33227..68cfffd69 100644
--- a/chapter08/e2fsprogs.xml
+++ b/chapter08/e2fsprogs.xml
@@ -134,6 +134,33 @@ install -v -m644 doc/com_err.info /usr/share/info
install-info --dir-file=/usr/share/info/dir /usr/share/info/com_err.info</userinput></screen>
</sect2>
+ <sect2 id="conf-e2fsprogs" role="configuration">
+ <title>Configuring E2fsprogs</title>
+
+ <indexterm zone="conf-e2fsprogs">
+ <primary sortas="e-/etc/mke2fs.conf">/etc/mke2fs.conf</primary>
+ </indexterm>
+
+ <para>
+ <filename>/etc/mke2fs.conf</filename> contains the default value of
+ various command line options of <command>mke2fs</command>. You may
+ edit the file to make the default values suitable for your need.
+ For example, some utilities (not in LFS or BLFS) cannot recognize a
+ <systemitem class='filesystem'>ext4</systemitem> file system with
+ <literal>metadata_csum_seed</literal> feature enabled.
+ <emphasis role='bold'>If</emphasis> you need such an utility, you may
+ remove the feature from the default
+ <systemitem class='filesystem'>ext4</systemitem> feature list with the
+ command:
+ </para>
+
+ <screen role='nodump'><userinput>sed 's/metadata_csum_seed,//' -i /etc/mke2fs.conf</userinput></screen>
+
+ <para>
+ Read the man page <filename>mke2fs.conf(5)</filename> for details.
+ </para>
+ </sect2>
+
<sect2 id="contents-e2fsprogs" role="content">
<title>Contents of E2fsprogs</title>