chiark / gitweb /
core/swap: follow the configured unit by default
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 28 Sep 2014 14:37:52 +0000 (10:37 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 29 Sep 2014 15:08:12 +0000 (11:08 -0400)
commitcdc8982030271785d650af410230397bbb5a4be9
tree6cfee28097ed15851733f6a434a8b52ca4724fbd
parent4f52d3fe2da7c3449b7fbfaa7c64a83354d3b56c
core/swap: follow the configured unit by default

Phenomenon: parameters configured in /etc/fstab for swap units are
ignored. E.g. pri= settings have no effect when systemd starts swap
units. What is even more confusing, .swap units for the name used in
/etc/fstab initially show proper values for Priority=, but after
starting them, they are re-initalized from /proc/swaps and show the -1
value from /proc/swaps.

Change swap units to follow the original configured unit. This way
proper settings are used when starting the swap.
src/core/swap.c