Fresh install of autofs is misconfigured and won't start (T9916)
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 141
- Forks
- 146
- Avg merge
- 11h 7m
- Merged PRs (30d)
- 407
Description
Unable to start autofs with default configuration.
autofs and cifs-utils are installed. I've been able to mount the samba share through an entry in fstab, but I was looking to be able to auto mount the share after login rather than through /etc/fstab.
I set up a mount for my htpc's samba share, referencing this document:
https://help.ubuntu.com/community/Autofs
Then I restarted autofs with sudo systemctl restart autofs
It didn't work, there were no subdirectories under /cifs. I stopped autofs and ran this to find out why, as the doc recommends:
≻ sudo automount -f -v
Starting automounter version 5.1.6, master map auto.master
using kernel protocol version 5.05
lookup(dir): dir map /etc/auto.master.d missing or not readable
lookup(file): failed to read included master map dir:/etc/auto.master.d
The problem is that the directory, /etc/auto.master.d which is specified in /etc/auto.master is not present on Solus
Recommended fix:
Properly create the directory expected with whatever default contents it needs, or comment out that line
Commenting out the bogus directory in my config file allowed my mount to work and the /cifs/ to auto create the share directory.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by inspecting the packaged /etc/auto.master and the missing /etc/auto.master.d path, then run sudo automount -f -v as shown in the report. Confirm a fresh autofs installation starts without the lookup error and that the configured CIFS share creates and mounts its /cifs/ subdirectory.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- linux
- Domain
- operating-systems
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100