mirror of
https://github.com/Kron4ek/Conty
synced 2025-01-30 20:34:42 +01:00
Mount the squashfs image as read-only
Even thouh squashfs is read-only anyway (even when mounted as read-write), it's still better to mount as read-only to avoid the "Text file busy" error.
This commit is contained in:
parent
8e6e07c423
commit
7c4610e028
1 changed files with 2 additions and 2 deletions
|
@ -26,7 +26,7 @@ export working_dir=/tmp/"$(basename "${script}")"_"${USER}"_${RANDOM}
|
|||
# a problem with mounting the squashfs image due to an incorrectly calculated offset.
|
||||
|
||||
# The size of this script
|
||||
scriptsize=13272
|
||||
scriptsize=13275
|
||||
|
||||
# The size of the utils.tar archive
|
||||
# utils.tar contains bwrap and squashfuse binaries
|
||||
|
@ -344,7 +344,7 @@ fi
|
|||
# Mount boostrap image
|
||||
mkdir -p "${working_dir}"/mnt
|
||||
|
||||
if ${sudo_mount} "${sfuse}" -o offset="${offset}" "${script}" "${working_dir}"/mnt ; then
|
||||
if ${sudo_mount} "${sfuse}" -o offset="${offset}",ro "${script}" "${working_dir}"/mnt ; then
|
||||
echo "Running Conty"
|
||||
|
||||
if [ -n "${NVIDIA_FIX}" ]; then
|
||||
|
|
Loading…
Add table
Reference in a new issue