[PATCH] Sort fstab entries by mountpoint. (#498354)

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

 



---
 storage/__init__.py |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/storage/__init__.py b/storage/__init__.py
index d05a8a5..56e0996 100644
--- a/storage/__init__.py
+++ b/storage/__init__.py
@@ -1849,7 +1849,9 @@ class FSSet(object):
 #
 """ % time.asctime()
 
-        devices = self.mountpoints.values() + self.swapDevices
+        devices = sorted(key=lambda d: d.format.mountpoint,
+                         self.mountpoints.values())
+        devices += self.swapDevices
         devices.extend([self.devshm, self.devpts, self.sysfs, self.proc])
         netdevs = self.devicetree.getDevicesByInstance(NetworkStorageDevice)
         for device in devices:
-- 
1.6.0.6

_______________________________________________
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