Skip to content

Commit

Permalink
Don't specify priority in fstab if -1 (default) is used
Browse files Browse the repository at this point in the history
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
  • Loading branch information
vpodzime committed Mar 18, 2015
1 parent 7ae5120 commit 4412249
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blivet/formats/swap.py
Expand Up @@ -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
Expand Down

0 comments on commit 4412249

Please sign in to comment.