]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
mount: (man) add note about options order
authorKarel Zak <kzak@redhat.com>
Wed, 1 Mar 2023 12:11:42 +0000 (13:11 +0100)
committerKarel Zak <kzak@redhat.com>
Wed, 1 Mar 2023 12:11:42 +0000 (13:11 +0100)
Fixes: https://github.com/util-linux/util-linux/issues/2087
Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/mount.8.adoc

index 5948d33896aa0ca96b56d74acc4e9d3772c0399a..39332e55c55c28f368f031263fac0cff6ca93f8b 100644 (file)
@@ -370,6 +370,8 @@ Use the specified mount options. The _opts_ argument is a comma-separated list.
 +
 *mount LABEL=mydisk -o noatime,nodev,nosuid*
 +
+Note that the order of the options matters, as the last option wins if there are conflicting ones. The options from the command line also overwrite options from fstab by default.
++
 For more details, see the *FILESYSTEM-INDEPENDENT MOUNT OPTIONS* and *FILESYSTEM-SPECIFIC MOUNT OPTIONS* sections.
 
 *--onlyonce*::