Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Gentoo Embedded (http://www.linux-archive.org/gentoo-embedded/)
-   -   Add a warning about the fstab implications of swap devices with no UUID. (http://www.linux-archive.org/gentoo-embedded/554819-add-warning-about-fstab-implications-swap-devices-no-uuid.html)

David Lehman 07-20-2011 09:00 PM

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

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


All times are GMT. The time now is 06:31 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.