[f22-branch 2/2] Don't specify priority in fstab if -1 (default) is used

vpodzime installerbot-noreply at redhat.com
Wed Mar 18 15:21:08 UTC 2015


From: Vratislav Podzimek <vpodzime at redhat.com>

For some reason, such fstab line doesn't work and it's better not to rely on -1
meaning the default forever.

Related: rhbz#1202505
---
 blivet/formats/swap.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/blivet/formats/swap.py b/blivet/formats/swap.py
index ce0a9df..e355505 100644
--- a/blivet/formats/swap.py
+++ b/blivet/formats/swap.py
@@ -114,7 +114,7 @@ def _getPriority(self):
 
     def _getOptions(self):
         opts = ""
-        if self.priority is not None:
+        if self.priority is not None and self.priority != -1:
             opts += "pri=%d" % self.priority
 
         return opts


-- 
To view this commit on github, visit https://github.com/rhinstaller/blivet/commit/441224973dc884f77d36464d221fb36a0007c1cb


More information about the anaconda-patches mailing list