openstack-zuul-jobs/roles/configure-swap/defaults
Lee Yarwood 45f555fdf0 configure-swap: Always use dd and limit swap size to 1024MB
A recent kernel update in Fedora has highlighted that fallocate produced
swap files on ext4 partions are no longer accepted by swapon:

swapon failed if the swap file is created by fallocate in ext4 partition
https://bugzilla.redhat.com/show_bug.cgi?id=1827115

This change assumes that all distros will eventually encounter this and
removes the fallocate task from the role and defaults to using dd. As
this is considerably slower the overall size of the swap file is reduced
to 1024MB.

Change-Id: I5ce9064a5546d85ab6f41c4e60aa56fa56ff47c1
2020-09-10 11:01:47 +01:00
..
main.yaml configure-swap: Always use dd and limit swap size to 1024MB 2020-09-10 11:01:47 +01:00