This repository was archived by the owner on May 28, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 40
This repository was archived by the owner on May 28, 2025. It is now read-only.
Error Mounting SMB Shares on Big Sur #108
Copy link
Copy link
Open
Description
Hi,
as @greatkemo mentioned in JSSImporter#187 you cannot mount shares on macOS Big Sur (with Apple Silicon, haven't tried intel yet).
Is there a known fix? If not I'd write a patch which creates a tempdir (mktemp) and mount the share to that place. This should avoid the error when trying to mount/create a dir in /Volumes.
Cheers,
ChrOst/bofh
Additionally the output I see on an BigSur machine (censored some stuff):
JSSImporter: Checking if DP already mounted...
mount: realpath /Volumes/CasperShare: No such file or directory
Traceback (most recent call last):
File "/Library/AutoPkg/autopkglib/__init__.py", line 658, in process
self.env = processor.process()
File "/Library/AutoPkg/autopkglib/__init__.py", line 465, in process
self.main()
File "/Library/AutoPkg/autopkglib/JSSImporter.py", line 1364, in main
self.jss.distribution_points.mount()
File "/Library/AutoPkg/JSSImporter/jss/distribution_points.py", line 279, in mount
child.mount()
File "/Library/AutoPkg/JSSImporter/jss/distribution_point.py", line 250, in mount
self._mount()
File "/Library/AutoPkg/JSSImporter/jss/distribution_point.py", line 569, in _mount
subprocess.check_call(args)
File "/Library/AutoPkg/Python3/Python.framework/Versions/Current/lib/python3.7/subprocess.py", line 363, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['mount', '-t', 'smbfs', '//DOMAIN;USER:_password_hidden_@linux_samba.on.domain.de:445/CasperShare', '/Volumes/CasperShare']' returned non-zero exit status 66.
File "/Library/AutoPkg/autopkglib/__init__.py", line 658, in process
self.env = processor.process()
Command '['mount', '-t', 'smbfs', '//DOMAIN;USER:_password_hidden_@linux_samba.on.domain.de:445/CasperShare', '/Volumes/CasperShare']' returned non-zero exit status 66.
Failed.
Receipt written to /Users/autopkg/Library/AutoPkg/Cache/com.github.autopkg.jss.Firefox-de/receipts/Firefox-receipt-20210219-100513.plist
The following recipes failed:
Firefox.jss
Error in com.github.autopkg.jss.Firefox-de: Processor: JSSImporter: Error: Command '['mount', '-t', 'smbfs', '//DOMAIN;USER:_password_hidden_@linux_samba.on.domain.de:445/CasperShare', '/Volumes/CasperShare']' returned non-zero exit status 66.
Metadata
Metadata
Assignees
Labels
No labels