It seems I am not trying to automount, I am trying to mount during the boot phase.
The mount command seems to need to be run after the vboxadd-service.service has been run. I have configured a mount command a.k.a a ,mount unit file.
[Unit]
Description=Mounts common on /import/common
Conflicts=umount.target
Requires=vboxadd-service.service graphical.target
After=vboxadd-service.service tmp.mount graphical.target
[Mount]
What=common
Where=/import/common
Type=vboxsf
Options=rw,uid=1000,gid=1000
[Install]
WantedBy=graphical.target
This works fine as the argument to a systemctl command, but does not mount as part of the boot. I have experimented with using my usual script as a service, but I also have problems with this. (I may be able to solve this by reading the vbox files). The status message I get after boot is,
Code: Select all
· import-common.mount - Mounts common on /import/common
Loaded: loaded (/etc/systemd/system/import-common.mount; enabled;
Active: inactive(dead)
Where: /import/common
What: common
Does anyone have an example that does what I want? Perhaps the author of the vboxadd[-.]service* might be able to help?