5e3719d21e
This change will imporve the ability to enable a swap partition should one be present. The updated script will now use the label when defined and found, it then will look for a partition in the /etc/fstab file prior to writing the file system entry. This resolves an issue where if this template was executed more than once, a given partition would be written to the /etc/fstab file repeatedly. If a given label is undefined the script will look for swap filesystem types and use the UUID of the given swap filesystem to enable swap functionality. This improvement will ensure hosts that have swap partition already created, but potentially unlabled, are able to be handled correctly. This will work with LVM, Logical, Primary partition types. Change-Id: I60a1f427d4f58ae559c797f37f8230d6eb694e1d Signed-off-by: Kevin Carter <kecarter@redhat.com> |
||
---|---|---|
.. | ||
swap-partition.j2.yaml | ||
swap.j2.yaml |