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

[PATCH 4/5] Add a warning about the fstab implications of swap devices with no UUID.



Resolves: rhbz#695740
---
 storage/__init__.py |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/storage/__init__.py b/storage/__init__.py
index d9c89fe..654a580 100644
--- a/storage/__init__.py
+++ b/storage/__init__.py
@@ -1087,6 +1087,15 @@ class Storage(object):
                                   "Although not strictly required in all cases, "
                                   "it will significantly improve performance "
                                   "for most installations."))
+        no_uuid = [s for s in swaps if not s.format.uuid]
+        if no_uuid:
+            warnings.append(_("At least one of your swap devices does not have "
+                              "a UUID, which is common in swap space created "
+                              "using older versions of mkswap. These devices "
+                              "will be referred to by device path in "
+                              "/etc/fstab, which is not ideal since device "
+                              "paths can change under a variety of "
+                              "circumstances. "))
 
         for (mountpoint, dev) in filesystems.items():
             if mountpoint in mustbeonroot:
-- 
1.7.3.4


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