swap: always add in extras when we load a swap unit
authorLennart Poettering <lennart@poettering.net>
Wed, 28 Nov 2018 19:35:50 +0000 (20:35 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 7 Dec 2018 16:35:32 +0000 (17:35 +0100)
commit06721f39f6adcfd8319ffb3d79ece87b8ef38506
treecd23e820a8b072e1c9bc93ce6cdeabf25fb0a30a
parenta0a424083f4612bdddedb8680a9b05fc86c14b40
swap: always add in extras when we load a swap unit

Much like for the mount units we need fields such as the slice
initialized by the time we activate the swap, hence when the kernel
let's us know about a new swap that appeared we need to initialize the
slice in any Swap object we allocated for that right-away, even if we
can't read the real unit file for the swap device.
src/core/swap.c