summaryrefslogtreecommitdiffstats
path: root/mount/swapon.8
diff options
context:
space:
mode:
authorKarel Zak2010-10-25 14:03:16 +0200
committerKarel Zak2010-10-25 14:03:16 +0200
commita5fd3d685e6c2d0a7d80e7607ac6ff7bf7d05f67 (patch)
tree80e479cfa0c3b3f25a93b7d4ed37ecf5a30c09a5 /mount/swapon.8
parentumount: umount -r segfault (diff)
downloadkernel-qcow2-util-linux-a5fd3d685e6c2d0a7d80e7607ac6ff7bf7d05f67.tar.gz
kernel-qcow2-util-linux-a5fd3d685e6c2d0a7d80e7607ac6ff7bf7d05f67.tar.xz
kernel-qcow2-util-linux-a5fd3d685e6c2d0a7d80e7607ac6ff7bf7d05f67.zip
swapon: add support for "nofail" fstab mount option
This option is already supported by mount(8) and fsck(8), there is no reason to have any exception for swap devices. Note that the --ifexists command line option applies to all swap devices, the "nofail" setting is per device. Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'mount/swapon.8')
-rw-r--r--mount/swapon.86
1 files changed, 6 insertions, 0 deletions
diff --git a/mount/swapon.8 b/mount/swapon.8
index a3ebc97cd..595198d51 100644
--- a/mount/swapon.8
+++ b/mount/swapon.8
@@ -113,6 +113,12 @@ Devices that are already being used as swap are silently skipped.
.TP
.B "\-e, \-\-ifexists"
Silently skip devices that do not exist.
+The
+.I /etc/fstab
+mount option
+.BI nofail
+may be also used to skip non-existing device.
+
.TP
.B "\-f, \-\-fixpgsz"
Reinitialize (exec /sbin/mkswap) the swap space if its page size does not