systemctl exits with status 0 on a nonexisting service unit inside chroot
Issue
The systemctl is-enabled
command exits with status 0 on a nonexisting service unit in chrooted environment.
Environment
RHEL 7
systemd-219-30.el7_3.6.x86_64
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.