Increase file descriptors limit if possible

This commit is contained in:
Kron4ek 2023-06-10 21:25:32 +05:00
parent 37cd806fcf
commit 79bbe80d21

View file

@ -820,6 +820,10 @@ else
"${script}" "${mount_point}")
fi
# Increase file descriptors limit in case soft and hard limits are different
# Useful for unionfs-fuse and for some games
ulimit -n $(ulimit -Hn) &>/dev/null
# Mount the image
mkdir -p "${mount_point}"