Merge pull request #83 from lilyinstarlight/fix/swapon-typo

swap: fix typo for checking if swap is on
This commit is contained in:
Jörg Thalheim 2022-12-23 16:42:23 +00:00 committed by GitHub
commit 8ae729e9be
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
'';