getsolus / getsolus/packages

Fresh install of autofs is misconfigured and won't start (T9916)

Open
#113 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Packaging Problem Priority: Normal State: Stale
Dominant language
Python
Stars
141
Forks
146
Avg merge
11h 7m
Merged PRs (30d)
407

Description

TraceyC (#TClark77), 2021-09-20 02:41:46 UTC

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.