python-blivet/bugfix-revert-Prefer-UUID-for-fstab-spec-for-DM-devices-too.patch

32 lines
1.1 KiB
Diff

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