Comment 4 for bug 1918990

Revision history for this message
Lee Trager (ltrager) wrote :

The attached tar files contain the Curtin configuration MAAS is sending. It defines storage but doesn't mention swap at all. MAAS does support configuring swap partitions but that must be done manually by the user.

What's interesting is that if you deploy Ubuntu 20.04 on AMD64 with ext2 swap isn't created. Nor is swap created when you use an ext4 filesystem. Because Curtin is already deciding when to add a swap file I think the logic should live in Curtin. Curtin docs[1] do define a "force" field to "Force the creation of swapfile even if curtin detects it may not work." So it seems there is some logic in Curtin already.

[1] https://curtin.readthedocs.io/en/latest/topics/config.html?highlight=multipath#swap