From bf1d7ba70aceddb5dae0cd2e370b8afaf0c81b05 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Mon, 25 May 2015 12:11:23 +0200 Subject: swap: use swapon -o This patch simplify swapon usage in systemd. The command swapon(8) since util-linux v2.26 supports "-o ". The idea is exactly the same like for mount(8). The -o specifies options in fstab-compatible way. For systemd it means that it does not have to care about things like "discard" or another swapon specific options. swapon -o For backward compatibility the code cares about "Priority:" swap unit field (for a case when Priority: is set, but pri= in the Options: is missing). References: http://lists.freedesktop.org/archives/systemd-devel/2014-October/023576.html --- man/systemd.swap.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'man/systemd.swap.xml') diff --git a/man/systemd.swap.xml b/man/systemd.swap.xml index 5016f453d5..c398677f43 100644 --- a/man/systemd.swap.xml +++ b/man/systemd.swap.xml @@ -177,7 +177,8 @@ Swap priority to use when activating the swap device or file. This takes an integer. This setting is - optional. + optional and ignored when priotiry is set by in the + Options= option. -- cgit v1.2.3-54-g00ecf