carlgranfelt / netapp-bootcamp

NetApp bootcamp repository
3 stars 4 forks source link

RHEL4 Preparation process - FSTAB optimization #130

Open YvosOnTheHub opened 4 years ago

YvosOnTheHub commented 4 years ago

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