Skip to content
Snippets Groups Projects

Curtin Userdata customization: avoid creation of swap file in MAAS

  • Clone with SSH
  • Clone with HTTPS
  • Embed
  • Share
    The snippet can be accessed without any authentication.
    Authored by Fulvio Galeazzi
    curtin_userdata_ubuntu_amd64_generic_xenial_noswapfile 535 B
    *** /etc/maas/preseeds/curtin_userdata_ubuntu_amd64_generic_xenial~     2017-10-04 13:14:20.043937203 +0000
    --- /etc/maas/preseeds/curtin_userdata_ubuntu_amd64_generic_xenial      2017-03-06 15:23:15.838938002 +0000
    ***************
    *** 13,22 ****
        driver_03_update_install: ["sh", "-c", "apt-get update --quiet && apt-get --assume-yes install {{driver['package']}}"]
        driver_04_load: ["sh", "-c", "depmod && modprobe {{driver['module']}}"]
      {{endif}}
    + swap:
    +   filename: swap.img
    +   size: 0B
    +   maxsize: 0B
      late_commands:
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Finish editing this message first!
    Please register or to comment