e2fsprogs: Add configuration section about mke2fs.conf

This commit is contained in:
Xi Ruoyao 2023-02-19 20:42:33 +08:00
parent dd8293bfa9
commit 4049a4b6c8
No known key found for this signature in database
GPG Key ID: ACAAD20E19E710E3

View File

@ -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>