From b5f8949138e1ad804d6fd27ad1d7ce287b0f3b94 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Thu, 12 Sep 2024 18:43:33 +0200 Subject: [PATCH] Clarify that partition script edits partitions --- lib/modules/partition/disks.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/modules/partition/disks.nix b/lib/modules/partition/disks.nix index 066e5af0..25249dbf 100644 --- a/lib/modules/partition/disks.nix +++ b/lib/modules/partition/disks.nix @@ -348,7 +348,7 @@ (builtins.map (_: _.deviceScript) disks) ++ lib.optionals ((builtins.length disks) > 0) [ ". ${./../../../scripts/Common/Scripts/is-truthy.sh}" ''echo "$(tput setaf 3)==== WARNING ====$(tput sgr0)"'' - (''echo "Continuing this script will wipe the contents of '' + ( + (''echo "Continuing this script will alter the partitions of '' + ( lib.strings.concatStringsSep ", " (builtins.map (_: "${_.deviceVariable}") (lib.lists.init disks)) ) + (if (builtins.length disks) > 1 then " and " else "") + (lib.lists.last disks).deviceVariable + ''"'') ''read -p "Are you sure you want to continue? [y/n] " answer''