about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorSoispha <soispha@vhack.eu>2023-07-02 14:24:36 +0200
committerSoispha <soispha@vhack.eu>2023-07-10 16:44:24 +0200
commit1be9ccf0687079831c468ef8481d9f4a2c4c3d46 (patch)
tree91ea6274b33bd479bf35f95aab84b4693dbe92a8
parentFix(bootstrap): Add udevadm as a dependency (diff)
downloadnixos-config-1be9ccf0687079831c468ef8481d9f4a2c4c3d46.tar.gz
nixos-config-1be9ccf0687079831c468ef8481d9f4a2c4c3d46.zip
Fix(bootstrap/eev): Correct pattern matching syntax
-rwxr-xr-xbootstrap/99_ensure_config_variables4
1 files changed, 2 insertions, 2 deletions
diff --git a/bootstrap/99_ensure_config_variables b/bootstrap/99_ensure_config_variables
index fa47a974..46ebf916 100755
--- a/bootstrap/99_ensure_config_variables
+++ b/bootstrap/99_ensure_config_variables
@@ -64,10 +64,10 @@ if ! [ "$NIX_ENVIRONMENT_VARIABLES_SET" ]; then
                 _disk="$(jq '.item' "$_disk" | tr -d "\"")"
                 _disk_serial="$(udevadm info --query=all --name="$_disk" | grep ID_SERIAL= | awk 'BEGIN{FS="="}{print $2}')"
                 case "$_disk" in
-                    "nvme*")
+                    "nvme"*)
                         _nix_disk="nvme-$_disk_serial"
                         ;;
-                    "sd*")
+                    "sd"*)
                         _nix_disk="ata-$_disk_serial"
                         ;;
                     *)