[systemd-bugs] [Bug 90897] New: systemctl fails with "Invalid argument" when using both --global and --root flags

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Jun 8 13:34:36 PDT 2015


https://bugs.freedesktop.org/show_bug.cgi?id=90897

            Bug ID: 90897
           Summary: systemctl fails with "Invalid argument" when using
                    both --global and --root flags
           Product: systemd
           Version: unspecified
          Hardware: Other
                OS: Linux (All)
            Status: NEW
          Severity: normal
          Priority: medium
         Component: general
          Assignee: systemd-bugs at lists.freedesktop.org
          Reporter: pespin.shar at gmail.com
        QA Contact: systemd-bugs at lists.freedesktop.org

I am trying to run systemctl from a script to enable some systemd user session
services inside a sysroot which is going to be used by an embedded system
later.

I found out, though, that when I run systemctl with both --global (to specify I
want to enable a user systemd service) and --root (to specify the sysroot of
the target system) parameters, I just get an error. For instance, it can easily
be checked like this:

# systemctl --global enable myapp.service
ln -s '/usr/lib/systemd/user/myapp.service'
'/etc/systemd/user/default.target.wants/myapp.service'

# systemctl --global --root=/ enable myapp.service
Operation failed: Invalid argument


Is that a bug or an expected behavior? how should I accomplish what I want to
do if that's expected?


More information:
~# systemctl --version
systemd 211
+PAM +LIBWRAP -AUDIT -SELINUX +IMA +SYSVINIT -LIBCRYPTSETUP -GCRYPT +ACL +XZ
-SECCOMP -APPARMOR

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-bugs/attachments/20150608/19e2c6d8/attachment.html>


More information about the systemd-bugs mailing list