Do not create swap.img file

In the curtin userdata file i have explicitly created swap partition. But “swap.img” file is still being created and mounted as swap. How can i tell curtin not to create “swap.img” file.
Adding “swap: Size: None” to the config didn’t produce desired outcome.


(edit) i have just rechecked documentation and it clearly states that adding “none” for “size” statement should be enough for not creating swap file.

Hi, set to zero does not work ? In my config I use that :

filename: swap.img
size: 0