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