]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
mount: improve --all documentation regarding swap areas
authorKarel Zak <kzak@redhat.com>
Wed, 22 Oct 2025 08:36:32 +0000 (10:36 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 22 Oct 2025 08:36:32 +0000 (10:36 +0200)
The --all option description did not mention that swap entries in
fstab are silently ignored. Add a note clarifying this behavior and
pointing users to swapon --all for enabling swap devices and files.

Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/mount.8.adoc

index eeb6e25fb8a7f1f918433bf58bb30d54b93d6555..0279767f70429aa485de9060439191c3720e3e9f 100644 (file)
@@ -315,6 +315,8 @@ The option *--all* is possible to use for remount operation too. In this case al
 +
 Since version 2.35 it is possible to use the command line option *-o* to alter mount options from _fstab_ (see also *--options-mode*).
 +
+Note that swap entries in _fstab_ are silently ignored by *mount -a*. Use *swapon -a* to enable swap devices and files. See *swapon*(8).
++
 Note that it is a bad practice to use *mount -a* for _fstab_ checking. The recommended solution is *findmnt --verify*.
 
 *--beneath*::