~sergiusens/cloud-init/snappy_ssh

Viewing all changes in revision 1022.

  • Committer: Scott Moser
  • Date: 2014-10-01 20:10:01 UTC
  • mfrom: (1021.1.13 trunk.swap)
  • Revision ID: smoser@ubuntu.com-20141001201001-k2no0lknaifedzzs
cc_mounts: add ability to create swap file

User can now configure setting of a swap file.
Only supports un-encrypted swap for now.

swap:
   filename: /swap.img
   size: "auto" or size in bytes
   maxsize: size in bytes

Also adds 2 util:
 read_meminfo: return how much memory on system.
 human2bytes: convert human numbers (8G) to bytes.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: