mirror of
https://github.com/nix-community/disko
synced 2024-11-10 06:14:14 +00:00
swap: fix typo for checking if swap is on
This commit is contained in:
parent
3ab2a5d98d
commit
ec3ab72d3a
1 changed files with 1 additions and 1 deletions
|
@ -655,7 +655,7 @@ rec {
|
|||
type = types.functionTo diskoLib.jsonType;
|
||||
default = dev: {
|
||||
fs.${dev} = ''
|
||||
if ! $(swapon --show | grep -q '^${dev} '); then
|
||||
if ! swapon --show | grep -q '^${dev} '; then
|
||||
swapon ${dev}
|
||||
fi
|
||||
'';
|
||||
|
|
Loading…
Reference in a new issue