Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error Mounting SMB Shares on Big Sur #108

Open
ChrOst opened this issue Feb 19, 2021 · 0 comments
Open

Error Mounting SMB Shares on Big Sur #108

ChrOst opened this issue Feb 19, 2021 · 0 comments

Comments

@ChrOst
Copy link

ChrOst commented Feb 19, 2021

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant