mirror of
https://github.com/nix-community/disko
synced 2024-11-10 06:14:14 +00:00
types swap: check real path of the device before mount
This commit is contained in:
parent
96815862d8
commit
c77e66cea1
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@
|
|||
inherit config options;
|
||||
default = {
|
||||
fs.${config.device} = ''
|
||||
if ! swapon --show | grep -q '^${config.device} '; then
|
||||
if ! swapon --show | grep -q "^$(readlink -f ${config.device}) "; then
|
||||
swapon ${config.device}
|
||||
fi
|
||||
'';
|
||||
|
|
Loading…
Reference in a new issue