Bug 1373932

Summary: `systemctl --user{ --all}` lists system units too
Product: [Fedora] Fedora Reporter: Christian Stadelmann <fedora>
Component: systemdAssignee: systemd-maint
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 24CC: johannbg, lnykryn, msekleta, muadda, ssahani, s, systemd-maint, zbyszek
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-09-07 13:42:27 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

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.