summaryrefslogtreecommitdiffstats
path: root/modules.d/90mdraid/parse-md.sh
diff options
context:
space:
mode:
Diffstat (limited to 'modules.d/90mdraid/parse-md.sh')
-rwxr-xr-xmodules.d/90mdraid/parse-md.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules.d/90mdraid/parse-md.sh b/modules.d/90mdraid/parse-md.sh
index 4d3a6b2..adc8aa6 100755
--- a/modules.d/90mdraid/parse-md.sh
+++ b/modules.d/90mdraid/parse-md.sh
@@ -21,7 +21,7 @@ else
printf 'ENV{ID_FS_UUID}=="%s", GOTO="md_uuid_ok"\n' "$(expr substr "$uuid" 1 8)-$(expr substr "$uuid" 9 4)-$(expr substr "$uuid" 13 4)-$(expr substr "$uuid" 17 4)-$(expr substr "$uuid" 21 12)"
done
# shellcheck disable=SC2016
- printf 'IMPORT{program}="/sbin/mdadm --examine --export $tempnode"\n'
+ printf 'IMPORT{program}="/sbin/mdadm --examine --export $devnode"\n'
for uuid in $MD_UUID; do
printf 'ENV{MD_UUID}=="%s", GOTO="md_uuid_ok"\n' "$(expr substr "$uuid" 1 8):$(expr substr "$uuid" 9 8):$(expr substr "$uuid" 17 8):$(expr substr "$uuid" 25 8)"
done