Merge pull request #32 from basvandewiel/31-bug-mounting-uses-wrong-command-on-mister

Use Busybox to perform the mount action.
This commit is contained in:
Bas v.d. Wiel 2023-03-12 13:49:13 +01:00 committed by GitHub
commit b1438db732
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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