Use Busybox to perform the mount action.

This commit is contained in:
Bas v.d. Wiel 2023-03-12 13:46:09 +01:00
parent 2217c322ba
commit 2e62a57e00
1 changed files with 1 additions and 1 deletions

View File

@ -241,7 +241,7 @@ function mount_nfs() {
echo "Error: failed to create directory /tmp/${SCRIPT_NAME}"
exit 1
fi
if ! mount -t nfs4 "${SERVER}:${SERVER_PATH}" "/tmp/${SCRIPT_NAME}" -o "${MOUNT_OPTIONS}"; then
if ! /usr/bin/busybox mount -t nfs4 "${SERVER}:${SERVER_PATH}" "/tmp/${SCRIPT_NAME}" -o "${MOUNT_OPTIONS}"; then
echo "Error: failed to mount NFS share ${SERVER}:${SERVER_PATH} to /tmp/${SCRIPT_NAME}"
exit 1
fi