disable swap in disko-install

Update disko-install

Co-authored-by: Michael Hoang <Enzime@users.noreply.github.com>
This commit is contained in:
Jörg ThalheimandMichael Hoang committed 2024-11-22 12:45:57 +01:00
1 parent eb1bb9fe27
commit fd3e326e9a
2 files changed
+4 -2

No files matched your search

+1 -1
View File
@@ -80,7 +80,7 @@
# TODO: we don't support encrypted swap yet
default = lib.optionalAttrs (!config.randomEncryption) {
fs.${config.device} = ''
if ! swapon --show | grep -q "^$(readlink -f "${config.device}") "; then
if test "''${DISKO_SKIP_SWAP:-}" != 1 && ! swapon --show | grep -q "^$(readlink -f "${config.device}") "; then
swapon ${
lib.optionalString (config.discardPolicy != null)
"--discard${lib.optionalString (config.discardPolicy != "both")