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

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

 



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

_______________________________________________
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