mirror of
https://github.com/TECHNOFAB11/disko.git
synced 2025-12-12 16:10:03 +01:00
Merge pull request #83 from lilyinstarlight/fix/swapon-typo
swap: fix typo for checking if swap is on
This commit is contained in:
commit
8ae729e9be
1 changed files with 1 additions and 1 deletions
|
|
@ -655,7 +655,7 @@ rec {
|
||||||
type = types.functionTo diskoLib.jsonType;
|
type = types.functionTo diskoLib.jsonType;
|
||||||
default = dev: {
|
default = dev: {
|
||||||
fs.${dev} = ''
|
fs.${dev} = ''
|
||||||
if ! $(swapon --show | grep -q '^${dev} '); then
|
if ! swapon --show | grep -q '^${dev} '; then
|
||||||
swapon ${dev}
|
swapon ${dev}
|
||||||
fi
|
fi
|
||||||
'';
|
'';
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue