Project

General

Profile

Bug #12525

systemd-logind is missing in the Vagrant build box

Added by intrigeri over 2 years ago. Updated over 2 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
Build system
Target version:
Start date:
05/09/2017
Due date:
% Done:

100%

Feature Branch:
Type of work:
Code
Blueprint:
Starter:
Affected tool:

Description

As discussed on tails-dev, this breaks shutting down the VM with virsh shutdown, and in turn makes shutting down the entire system take ages.

History

#1 Updated by arnaud over 2 years ago

I had a quick look at this issue.

Just starting the service doesn't work, because it requires dbus to be installed. You can see that with these commands, run as root.

$ systemctl start  systemd-logind.service
$ systemctl status systemd-logind.service
● systemd-logind.service - Login Service
   Loaded: loaded (/lib/systemd/system/systemd-logind.service; static)
   Active: inactive (dead)
           start condition failed at Fri 2017-05-12 01:53:28 UTC; 1s ago
           ConditionPathExists=/lib/systemd/system/dbus.service was not met
   ...

Ok, so let's install dbus and retry.

$ apt-get install dbus
...
$ systemctl start  systemd-logind.service
$ systemctl status systemd-logind.service
● systemd-logind.service - Login Service
   Loaded: loaded (/lib/systemd/system/systemd-logind.service; static)
   Active: active (running) since Fri 2017-05-12 01:55:58 UTC; 1s ago
   ...

Success !

After that, I tried a virsh shutdown from the host, it worked like a charm.

#2 Updated by intrigeri over 2 years ago

  • Status changed from Confirmed to In Progress

Just starting the service doesn't work, because it requires dbus to be installed.

We need dbus anyway for the #5630 branch.

After that, I tried a virsh shutdown from the host, it worked like a charm.

Thanks a lot :)

#3 Updated by anonym over 2 years ago

  • Status changed from In Progress to 11
  • Assignee deleted (anonym)
  • % Done changed from 0 to 100
  • QA Check set to Pass

This was, incidentally, fixed by f8718d88fd2dbbaf60b2fd004eef5d74d5590ac3 that installs dbus -- that was the only thing missing. The systemd-logind service is running in our current base box, and virsh shutdown works fine.

#4 Updated by intrigeri over 2 years ago

  • Status changed from 11 to Resolved

Also available in: Atom PDF