#1 Fix invalid substitution type error in udev rule
Closed 4 months ago by carlwgeorge. Opened 6 months ago by dcavalca.
rpms/ dcavalca/mdadm udevfix  into  c8s

file modified
+1 -1

@@ -25,7 +25,7 @@ 

  # anything here, just regular disks, and this also won't get any imsm

  # array members either)

  SUBSYSTEM=="block", ACTION=="add", ENV{ID_FS_TYPE}=="linux_raid_member", \

- 	IMPORT{program}="/sbin/mdadm -I $env{DEVNAME} --export $devnode --offroot ${DEVLINKS}"

+ 	IMPORT{program}="/sbin/mdadm -I $env{DEVNAME} --export $devnode --offroot $${DEVLINKS}"

  SUBSYSTEM=="block", ACTION=="add", ENV{ID_FS_TYPE}=="linux_raid_member", \

  	ENV{MD_STARTED}=="*unsafe*", ENV{MD_FOREIGN}=="no", ENV{SYSTEMD_WANTS}+="mdadm-last-resort@$env{MD_DEVICE}.timer"

  SUBSYSTEM=="block", ACTION=="remove", ENV{ID_PATH}=="?*", \

file modified
+4 -1

@@ -1,7 +1,7 @@ 

  Summary:     The mdadm program controls Linux md devices (software RAID arrays)

  Name:        mdadm

  Version:     4.1

- Release:     15%{?dist}

+ Release:     16%{?dist}

  Source:      http://www.kernel.org/pub/linux/utils/raid/mdadm/mdadm-%{version}.tar.xz

  Source1:     mdmonitor.init

  Source2:     raid-check

@@ -331,6 +331,9 @@ 

  /usr/lib/mdadm/mdadm_env.sh

  

  %changelog

+ * Thu Apr  1 2021 Davide Cavalca <dcavalca@fb.com> - 4.1.16

+ - Fix invalid substitution type error in udev rule

+ 

  * Mon Jan 11 2021 Xiao Ni <xni@redhat.com> - 4.1.15

  - Update to latest upstream

  - Resolves rhbz#1838005

This is a backport of https://src.fedoraproject.org/rpms/mdadm/c/3665f779901e70baadb7655d7270929c98d4aa00?branch=rawhide to fix the

Feb 23 09:24:12 centos-strea systemd-udevd[2790]: /usr/lib/udev/rules.d/65-md-incremental.rules:28 Invalid value "/sbin/mdadm -I $env{DEVNAME} --export $devnode --offroot ${DEVLINKS}" for IMPORT (char 58: invalid substitution type), ignoring, but please fix it.

udev error on boot. Originally reported in https://pagure.io/centos-sig-hyperscale/sig/issue/24.

This was merged in mdadm-4.2-rc1_2.el8, which is now available in the CentOS Stream 8 repositories. Thanks for the contribution!

Pull-Request has been closed by carlwgeorge

4 months ago
Metadata