From 1be9ccf0687079831c468ef8481d9f4a2c4c3d46 Mon Sep 17 00:00:00 2001 From: Soispha Date: Sun, 2 Jul 2023 14:24:36 +0200 Subject: Fix(bootstrap/eev): Correct pattern matching syntax --- bootstrap/99_ensure_config_variables | 4 ++-- 1 file 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" ;; *) -- cgit 1.4.1