FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo Embedded

 
 
LinkBack Thread Tools
 
Old 07-20-2011, 09:00 PM
David Lehman
 
Default 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
 

Thread Tools




All times are GMT. The time now is 05:53 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org