about summary refs log tree commit diff
path: root/nixos/modules/config
diff options
context:
space:
mode:
authorPhilip Taron2024-08-13 07:05:46 -0700
committerGitHub2024-08-13 07:05:46 -0700
commit04a8c1e76494717a6cedc453dda8c3c0f7e18463 (patch)
tree7f1b14343f356b86e60cf14c2fcd6546486b0ebf /nixos/modules/config
parent6264da49ab004873576c62e7bb4bd35e0230b994 (diff)
parentf2f8f302fdaf59a90e8ab93ed910723a1f4aa236 (diff)
Merge pull request #328030 from Wulfsta/swap-status
Diffstat (limited to 'nixos/modules/config')
-rw-r--r--nixos/modules/config/swap.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/nixos/modules/config/swap.nix b/nixos/modules/config/swap.nix
index 4d6ee0b17837..e945e18b1f25 100644
--- a/nixos/modules/config/swap.nix
+++ b/nixos/modules/config/swap.nix
@@ -272,7 +272,8 @@ in
                     truncate --size 0 "$DEVICE"
                     chattr +C "$DEVICE" 2>/dev/null || true
 
-                    dd if=/dev/zero of="$DEVICE" bs=1M count=${toString sw.size}
+                    echo "Creating swap file using dd and mkswap."
+                    dd if=/dev/zero of="$DEVICE" bs=1M count=${toString sw.size} status=progress
                     ${lib.optionalString (!sw.randomEncryption.enable) "mkswap ${sw.realDevice}"}
                   fi
                 ''}