This is unfortunately a limitation of the existing DBus interface for
logind. The "RebootWithFlags" method is used when you call:

$ systemctl reboot --check-inhibitors=no

which, as the name suggests, accepts certain flags for the operation.
One of those is for ignoring inhibitors.

But, when you call:

$ systemctl reboot --when=+1min

the "ScheduleShutdown" method is used, which does not have a parameter
for the necessary flags.

There is currently work being done to migrate logind to use varlink
which is easier to expand, so in future releases it should be simple to
allow this use case.

** Changed in: systemd (Ubuntu)
       Status: New => Triaged

** Changed in: systemd (Ubuntu)
   Importance: Undecided => Wishlist

** Changed in: systemd (Ubuntu)
     Assignee: (unassigned) => Nick Rosbrook (enr0n)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2154236

Title:
  "--when" disables "--check-inhibitors=no" when doing "systemctl
  reboot" remotely

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/2154236/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to