Disable creation of swap file

By default, curtin creates a swap file of up to 8GB. When swap is later
disabled, there is still a /swap.img file left hanging around that needs
to be cleaned up.

This change sets the size to 0 to disable the creation of the swap file
in the first place.

https://curtin.readthedocs.io/en/latest/topics/config.html#swap

Change-Id: I9e1e5f67007ae3c49617525e989b27e123b69d53
This commit is contained in:
Phil Sphicas 2020-05-31 18:56:50 +00:00
parent 8f35260091
commit 3624da26f5
1 changed files with 2 additions and 0 deletions

View File

@ -72,6 +72,8 @@ def find_ba_key(n):
driver_07_update_initramfs: ["curtin", "in-target", "--", "update-initramfs", "-u"]
{{ "{{" }}endif{{ "}}" }}
showtrace: true
swap:
size: 0
verbosity: 2
{{- if not (empty .Values.conf.maas.system_user) }}
{{- if not (empty .Values.conf.maas.system_passwd) }}