Since our swap setup code is initially written for AMI and GCE, swap file size is harf of rootfs.
However, on Azure we use "Resource Disk" partition (/mnt) to store swap file, it's not on rootfs, so probably we should not use half_of_diskfree() for Azure.
Since we don't use /mnt other purpose, I think we can just use 100% of the disk space.
Or maybe we can re-format it as swap partition if it's possible.
Since our swap setup code is initially written for AMI and GCE, swap file size is harf of rootfs. However, on Azure we use "Resource Disk" partition (/mnt) to store swap file, it's not on rootfs, so probably we should not use
half_of_diskfree()
for Azure. Since we don't use /mnt other purpose, I think we can just use 100% of the disk space. Or maybe we can re-format it as swap partition if it's possible.