diff options
author | nabijaczleweli <nabijaczleweli@gmail.com> | 2019-12-21 07:17:59 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2020-03-12 17:52:43 +0100 |
commit | 567a5307601728c618546c584f63307283fa8def (patch) | |
tree | 89f29d8c14d25f9915ce3d39ec5fd3e0f363e053 /man/systemd-fstab-generator.xml | |
parent | Merge pull request #15095 from yuwata/tc-tiny-fixes (diff) | |
download | systemd-567a5307601728c618546c584f63307283fa8def.tar.xz systemd-567a5307601728c618546c584f63307283fa8def.zip |
fstab-generator: handle systemd.swap= command-line argument
Don't generate swap units if set to false
The inverse of this argument is present as "noswap" on Debian sysvinit
Ref:
https://salsa.debian.org/debian/sysvinit/blob/4422988cb41c3022eee7444378cac3b2e36eac28/debian/vars.sh#L34
https://salsa.debian.org/debian/sysvinit/blob/4422988cb41c3022eee7444378cac3b2e36eac28/debian/src/initscripts/etc/init.d/mountall.sh#L78
Fixes https://github.com/systemd/systemd/issues/6686
Diffstat (limited to 'man/systemd-fstab-generator.xml')
-rw-r--r-- | man/systemd-fstab-generator.xml | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/man/systemd-fstab-generator.xml b/man/systemd-fstab-generator.xml index ab33258858..59f1896860 100644 --- a/man/systemd-fstab-generator.xml +++ b/man/systemd-fstab-generator.xml @@ -198,6 +198,15 @@ automatically populate <filename>/etc</filename>, and also <filename>/var</filename> in case of <literal>systemd.volatile=yes</literal>.</para></listitem> </varlistentry> + + <varlistentry> + <term><varname>systemd.swap</varname></term> + + <listitem><para>Takes a boolean argument or enables the option if specified + without an argument. If disabled, causes the generator to ignore + any swap devices configured in <filename>/etc/fstab</filename>. + Defaults to enabled.</para></listitem> + </varlistentry> </variablelist> </refsect1> |