Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Step:FrontRunner
mdadm.14070
0156-Use-correct-syntax-for-passing-DEVLINKS-to...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0156-Use-correct-syntax-for-passing-DEVLINKS-to-mdadm-fro.patch of Package mdadm.14070
From ceb5f8ef92c97d1f44c75a3b74f64aa12a3303ef Mon Sep 17 00:00:00 2001 From: NeilBrown <neilb@suse.com> Date: Fri, 4 Aug 2017 15:30:02 +1000 Subject: [PATCH] Use correct syntax for passing DEVLINKS to mdadm from udev Git-commit: ceb5f8ef92c97d1f44c75a3b74f64aa12a3303ef Patch-mainline: mdadm-4.0+ References: bsc#1069165, bsc#1069167, bsc#1068030 ${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> Signed-off-by: Coly Li <colyli@suse.de> --- mdadm.8.in | 2 +- udev-md-raid-assembly.rules | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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" -- 2.13.6
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor