Bug 1373932 - `systemctl --user{ --all}` lists system units too
Summary: `systemctl --user{ --all}` lists system units too
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: systemd
Version: 24
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: systemd-maint
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-09-07 13:03 UTC by Christian Stadelmann
Modified: 2016-09-07 13:42 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-09-07 13:42:27 UTC
Type: Bug


Attachments (Terms of Use)

Description Christian Stadelmann 2016-09-07 13:03:35 UTC
Description of problem:
Running `systemctl --user` and `systemctl --user --all` also lists some systemd units only useful to the system instance, for example var.mount or boot.mount or dev-hugepages.mount or dev-mapper-luks….device. For a user there is no use in listing these, so how about hiding them?

Version-Release number of selected component (if applicable):
systemd-229-13.fc24.x86_64

How reproducible:
always

Comment 1 Zbigniew Jędrzejewski-Szmek 2016-09-07 13:42:27 UTC
That's by design... user units can depend on those units to start things only if something is mounted, or if a certain device is available, etc. I don't think we want to hide them, because systemctl is a fairly low level tool, and hiding things would add even more complexity.


Note You need to log in before you can comment on or make changes to this bug.