Add nodfs to cifs mount

This commit is contained in:
Alex D. 2024-08-20 12:52:50 +00:00
parent e921edd3e7
commit 03fd085da9
Signed by: caskd
GPG Key ID: F92BA85F61F4C173
2 changed files with 2 additions and 3 deletions

View File

@ -3,11 +3,10 @@
. ../APKBUILD-openrc.template
pkgver=2022.04.19.10
pkgrel=0
depends="redxen-secret-seedbox-mount cifs-utils"
sha512sums="
d9661deeef39cb84c347f80ad78e8f455d201d1375d6c3ac7064321edb7d619d685dce71993b8644fe91c0a8f2f29c52c2a79b8a91360d08a230f27369a54ecb runfile
7121650745833720af58e583af30d04f7f2756cb2cd17f682c8220859b309c8a79cb2315b4d7db7cadc24c23836df7f71f7d0b9142256b0708112f1de87bb601 runfile
b0de4ab3bb8b039b6609a92f2fe8bb42f4bdad0d777e4281f34becd6269e5a8cb99a5c15cb5fc0b5e86ff04ddfeff2032311452aa986debc2def0e146cf7d050 conffile
"

View File

@ -12,7 +12,7 @@ start_pre() {
}
start() {
mount -t cifs -o credentials="$creds",rw,cache=none,seal,uid="$(id -u transmission)",gid="$(id -g transmission)",dir_mode=0755,file_mode=0644 "$endpoint" "$mountpath" || stop
mount -t cifs -o credentials="$creds",rw,cache=none,nodfs,seal,uid="$(id -u transmission)",gid="$(id -g transmission)",dir_mode=0755,file_mode=0644 "$endpoint" "$mountpath" || stop
mount --bind "${mountpath}" /sftp-chroot"${mountpath}" || stop
}