``CONSFIGURATOR.PROPERTY.SWAP``
===============================
API reference
-------------

General
~~~~~~~

Property: ``SWAP:HAS-SWAP-FILE``
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

``(swap:has-swap-file size &key location)``

Add a swap file.  SIZE is the -l argument to fallocate(1).
Current implementation assumes a non-CoW filesystem; see NOTES in swapon(8).

Property: ``SWAP:RESUME-CONFIGURED``
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

``(swap:resume-configured &key swap-file)``

Configure system to hibernate to and resume from SWAP-FILE.
Only configuring GRUB is currently implemented.
