systemd / systemd/systemd

systemctl edit and revert of symlinks are inconsistent

Open
#10,044 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug 🐛 systemctl
Dominant language
C
Stars
16.7k
Forks
4.7k
Avg merge
1d 6h
Merged PRs (30d)
140

Description

$ ls -l /lib/systemd/system/network-manager.service
... /lib/systemd/system/network-manager.service -> NetworkManager.service

systemctl edit network-manager.service creates a drop-in snippet for NetworkManager.service, but systemctl revert network-manager.service does nothing.

Either edit shouldn't be transparent (display a warning?) or revert should work.

Contributor guide

Open the contributing guide

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 reproducing the reported commands with a symlinked unit: systemctl edit network-manager.service followed by systemctl revert network-manager.service. Trace the edit and revert handling for symlinked units and add coverage for the inconsistency. Done means the behavior is consistent, either by warning during edit or making revert remove the created drop-in.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, linux
Domain
cli, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.