mirror of
https://github.com/nix-community/disko.git
synced 2026-11-30 21:13:28 +01:00
Merge pull request #890 from nix-community/disko-install
disko-install: dry-run improvements
This commit is contained in:
2 files changed
+29
-9
No files matched your search
+1
-1
@@ -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")
|
||||
|
||||
Reference in new issue
Block a user