[blivet] Allow specifying which swaps should appear in fstab

Brian C. Lane bcl at redhat.com
Fri Oct 4 19:20:36 UTC 2013


On Thu, Oct 03, 2013 at 04:04:26PM +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 at redhat.com>
> ---
>  blivet/__init__.py     | 57 +++++++++++++++++++++++++++++++++++++++++++++++++-
>  blivet/partitioning.py |  8 +++++++
>  2 files changed, 64 insertions(+), 1 deletion(-)
> 
> diff --git a/blivet/__init__.py b/blivet/__init__.py
> index 8f6e82a..538c1a1 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 addFstabSwap(self, device):
> +        """
> +        Add swap device to the list of swaps that should appear in the fstab.
> +
> +        """

Could you add sphinx doc markup to the new functions?

-- 
Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA (PST8PDT)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 482 bytes
Desc: not available
URL: <https://lists.fedorahosted.org/pipermail/anaconda-patches/attachments/20131004/d1b3b4e8/attachment.sig>


More information about the anaconda-patches mailing list