]> git.ipfire.org Git - thirdparty/systemd.git/commit
gpt-auto-generator: disable gpt auto logic for swaps if at least one is defined in... 5976/head
authorFranck Bui <fbui@suse.com>
Mon, 26 Jun 2017 13:23:35 +0000 (15:23 +0200)
committerFranck Bui <fbui@suse.com>
Tue, 27 Jun 2017 08:06:36 +0000 (10:06 +0200)
commitfc5bc384c7691bc9aacf05bfa79a2a02c3d8d45d
tree854821a63312dff7cee178e70148292197c51900
parent6c1921e9f39ce450bbd066341afc6a677ef122cb
gpt-auto-generator: disable gpt auto logic for swaps if at least one is defined in fstab

If a swap partition is created on a disk using GPT then the unit generated by
the gpt-generator can shadow the one generated by the fstab-generator.

This can be an issue if the fstab entry for the swap has options since they are
simply ignored if PID1 decides to use the unit created by the gpt-generator
since this unit carries no information about the swap options.

This patch simply disables the GPT auto logic for swaps if at least one entry
for swap is defined in /etc/fstab.

Fixes: #6192
src/gpt-auto-generator/gpt-auto-generator.c