diff --git a/blivet/formats/swap.py b/blivet/formats/swap.py index ce0a9dfef..e355505e7 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