On Wed, 2013-10-02 at 15:21 +0200, Vratislav Podzimek wrote:
Not all swaps should be used by the system in some cases.
Related: rhbz#1011391
Signed-off-by: Vratislav Podzimek vpodzime@redhat.com
blivet/__init__.py | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++ blivet/partitioning.py | 4 ++++ 2 files changed, 60 insertions(+)
diff --git a/blivet/__init__.py b/blivet/__init__.py index 8f6e82a..2c39552 100644 --- a/blivet/__init__.py +++ b/blivet/__init__.py @@ -2120,6 +2120,30 @@ class Blivet(object): parent = getattr(self.ksdata, list_attr) parent.dataList().append(data)
- def add_fstab_swap(self, fmt):
"""Add swap format to the list of swaps that should appear in the fstab."""self.fsset.add_fstab_swap(fmt)- def remove_fstab_swap(self, fmt):
"""Remove swap format from the list of swaps that should appear in the fstab."""self.fsset.remove_fstab_swap(fmt)- def set_fstab_swaps(self, fmts):
"""Set swap formats that should appear in the fstab."""self.fsset.set_fstab_swaps(fmts)def mountExistingSystem(fsset, rootDevice, allowDirty=None, dirtyCB=None, readOnly=None): @@ -2328,6 +2352,7 @@ class FSSet(object): self._usb = None self._selinux = None self._run = None
self._fstab_lines = set()
This should be fstab_swaps, of course. Fixed locally in the version I'm testing (forgot to ammend it).