Re: [PATCH] Override fstabSpec in PartitionDevice for by-path DASD (#526364).

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ack

On 10/08/2009 11:15 AM, David Cantrell wrote:
If the partition is on a DASD disk, write out the /dev/disk/by-path/...
value to the /etc/fstab file rather than a UUID= line.
---
  storage/devices.py |    9 +++++++++
  1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/storage/devices.py b/storage/devices.py
index 61a0b67..3cc3aac 100644
--- a/storage/devices.py
+++ b/storage/devices.py
@@ -993,6 +993,15 @@ class PartitionDevice(StorageDevice):
          return (self.partType is not None and
                  self.partType&  parted.PARTITION_PROTECTED)

+    @property
+    def fstabSpec(self):
+        spec = self.path
+        if self.disk and self.disk.type == 'dasd':
+            spec = deviceNameToDiskByPath(self.path)
+        elif self.format and self.format.uuid:
+            spec = "UUID=%s" % self.format.uuid
+        return spec
+
      def _getPartedPartition(self):
          if not self.exists:
              return self._partedPartition

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux