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