dcavalca / rpms / mdadm

Forked from rpms/mdadm 3 years ago
Clone

Blame SOURCES/0024-udev-Add-udev-rules-to-create-by-partuuid-for-md-dev.patch

8fbece
From 3c9b46cf9ae15a9be98fc47e2080bd9494496246 Mon Sep 17 00:00:00 2001
8fbece
From: Liwei Song <liwei.song@windriver.com>
8fbece
Date: Tue, 19 Mar 2019 23:51:05 -0400
8fbece
Subject: [RHEL7.7 PATCH 24/24] udev: Add udev rules to create by-partuuid for
8fbece
 md device
8fbece
8fbece
This rules will create link under /dev/disk/by-partuuid/ for
8fbece
MD devices partition, with which will support specify
8fbece
root=PARTUUID=XXX to boot rootfs.
8fbece
8fbece
Signed-off-by: Liwei Song <liwei.song@windriver.com>
8fbece
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
8fbece
---
8fbece
 udev-md-raid-arrays.rules | 1 +
8fbece
 1 file changed, 1 insertion(+)
8fbece
8fbece
diff --git a/udev-md-raid-arrays.rules b/udev-md-raid-arrays.rules
8fbece
index c95ec7b..5b99d58 100644
8fbece
--- a/udev-md-raid-arrays.rules
8fbece
+++ b/udev-md-raid-arrays.rules
8fbece
@@ -30,6 +30,7 @@ IMPORT{builtin}="blkid"
8fbece
 OPTIONS+="link_priority=100"
8fbece
 OPTIONS+="watch"
8fbece
 ENV{ID_FS_USAGE}=="filesystem|other|crypto", ENV{ID_FS_UUID_ENC}=="?*", SYMLINK+="disk/by-uuid/$env{ID_FS_UUID_ENC}"
8fbece
+ENV{ID_FS_USAGE}=="filesystem|other", ENV{ID_PART_ENTRY_UUID}=="?*", SYMLINK+="disk/by-partuuid/$env{ID_PART_ENTRY_UUID}"
8fbece
 ENV{ID_FS_USAGE}=="filesystem|other", ENV{ID_FS_LABEL_ENC}=="?*", SYMLINK+="disk/by-label/$env{ID_FS_LABEL_ENC}"
8fbece
 
8fbece
 ENV{MD_LEVEL}=="raid[1-9]*", ENV{SYSTEMD_WANTS}+="mdmonitor.service"
8fbece
-- 
8fbece
2.7.5
8fbece