代码拉取完成,页面将自动刷新
From d14af518e0031336861c8fdaeb3c4534e7c2fd6f Mon Sep 17 00:00:00 2001
From: s30028044 <sunhai10@huawei.com>
Date: Sat, 29 Jun 2024 16:53:26 +0800
Subject: [PATCH] revert Prefer UUID for fstab spec for DM devices too
revert the patch of "Prefer UUID for fstab spec for DM devices too"
Reference: https://github.com/storaged-project/blivet/commit/7aa07083dbc90b0fabea063ca5a19ee3d154b1b2
Conflict: https://github.com/storaged-project/blivet/commit/7aa07083dbc90b0fabea063ca5a19ee3d154b1b2
---
blivet/devices/dm.py | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/blivet/devices/dm.py b/blivet/devices/dm.py
index 4362f82..0ac5f01 100644
--- a/blivet/devices/dm.py
+++ b/blivet/devices/dm.py
@@ -97,6 +97,11 @@ class DMDevice(StorageDevice):
d.update({"target": self.target, "dm_uuid": self.dm_uuid})
return d
+ @property
+ def fstab_spec(self):
+ """ Return the device specifier for use in /etc/fstab. """
+ return self.path
+
@property
def map_name(self):
""" This device's device-mapper map name """
--
2.27.0
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。