oracle/weblogic-azure

Incorrect whitespace observed for smb mount in `/etc/fstab`

majguo opened this issue · 0 comments

The whitespace in /etc/fstab is used as delimiter to separate parameters specified for smb mount. An incorrect whitespace is observed in several files which will make the subsequent ,dir_mode=0777,file_mode=0777,serverino unrecognized after VM reboot, e.g., in https://github.com/oracle/weblogic-azure/blob/main/weblogic-azure-vm/arm-oraclelinux-wls-admin/src/main/scripts/setupAdminDomain.sh#L470:

sudo bash -c "echo \"//${storageAccountName}.file.core.windows.net/wlsshare $mountpointPath cifs nofail,vers=2.1,credentials=/etc/smbcredentials/${storageAccountName}.cred ,dir_mode=0777,file_mode=0777,serverino\" >> /etc/fstab"

This issue caused the intended directory/file permission 0777 for mounted /mnt/wlsshare lost after VM reboot.