The _01_prepare_prod_k8s_serverrhel4.sh script contains a fstab modification about the swap configuration.
Using the command SED is probably more adapted than rewriting the whole file without saving it or reading it.
I would recommend using the following 2 lines:
cp /etc/fstab /etc/fstab.bak
sed -e '/swap/ s/^#*/#/g' -i /etc/fstab
The _01_prepare_prod_k8s_serverrhel4.sh script contains a fstab modification about the swap configuration. Using the command SED is probably more adapted than rewriting the whole file without saving it or reading it.
I would recommend using the following 2 lines: