Use correct syntax for passing DEVLINKS to mdadm from udev
${DEVLINKS} is not valid udev syntax, and is passed through uninterpreted. $env{DEVLINKS} or %e{DEVLINKS} is correct. Signed-off-by: NeilBrown <neilb@suse.com> Signed-off-by: Jes Sorensen <jsorensen@fb.com>
This commit is contained in:
parent
8e5b52cdda
commit
ceb5f8ef92
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue