I am trying to mount a Linux SMB share onto a macOS machine running Ventura 13.4. I must have the share mounted after the macOS machine bootup is completed, but before any possible user has logged into the machine via the desktop UI. This is to permit SSH connections into the machine that perform maintenance and requires access to those Linux shares as local mounted folders. Per User scripts cannot help as we are using AD, and a user may not have ever logged into the machine at any time, plus the script must be run before the user has logged in.
I've tried using fstab
: My command line equivalents for that with the mount command work, but fstab
does not seem to be processed by macOS at startup any longer, so the fstab
entries are ignored unless utilized with a manual command line of mount -a
I've also tried using a bash script launched at startup to utilize various combinations of launchd
, including Library/LaunchAgents
, System/Library/LaunchDaemons
, Library/LaunchDaemons
, and System/Library/LaunchAgents
. Some of these will mount the share at startup, but none of them seem to mount the share before a user has logged into the UI.
Any suggestions on a solution that mount the share before the user has logged in?