diff --git a/mdadm.8.in b/mdadm.8.in index 461c5de..e0747fb 100644 --- a/mdadm.8.in +++ b/mdadm.8.in @@ -2947,7 +2947,7 @@ This is the only context where the aliases are used. They are usually provided by a .I udev rules mentioning -.BR ${DEVLINKS} . +.BR $env{DEVLINKS} . .IP + Does the device have a valid md superblock? If a specific metadata diff --git a/udev-md-raid-assembly.rules b/udev-md-raid-assembly.rules index 8ca232a..9f055ed 100644 --- a/udev-md-raid-assembly.rules +++ b/udev-md-raid-assembly.rules @@ -30,7 +30,7 @@ LABEL="md_inc" # remember you can limit what gets auto/incrementally assembled by # mdadm.conf(5)'s 'AUTO' and selectively whitelist using 'ARRAY' -ACTION=="add|change", IMPORT{program}="BINDIR/mdadm --incremental --export $devnode --offroot ${DEVLINKS}" +ACTION=="add|change", IMPORT{program}="BINDIR/mdadm --incremental --export $devnode --offroot $env{DEVLINKS}" ACTION=="add|change", ENV{MD_STARTED}=="*unsafe*", ENV{MD_FOREIGN}=="no", ENV{SYSTEMD_WANTS}+="mdadm-last-resort@$env{MD_DEVICE}.timer" ACTION=="remove", ENV{ID_PATH}=="?*", RUN+="BINDIR/mdadm -If $name --path $env{ID_PATH}" ACTION=="remove", ENV{ID_PATH}!="?*", RUN+="BINDIR/mdadm -If $name"