Feature #5821

Switch to systemd as pid 1

Added by Tails 2013-07-18 07:46:45 . Updated 2015-08-05 10:21:19 .

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Target version:
Start date:
2014-05-09
Due date:
2015-06-01
% Done:

100%

Feature Branch:
feature/jessie
Type of work:
Code
Blueprint:

Starter:
0
Affected tool:
Deliverable for:

Description

We’ve been wanting to supervise critical services (Feature #5750) for years, and e.g. systemd knows how to do that.

systemd is quite well integrated in Debian Wheezy, and has about a thousand reported users in Debian as of February 2012, while Wheezy is not out yet.

Moreover, Debian Jessie’s default init will be systemd.

So, we want to switch to systemd once Tails is based on Wheezy (Feature #6015).

Once this is done, we can go further and leverage systemd: Feature #7545, Feature #5750.


Subtasks

Bug #7183: Fix memory erasure when booted with systemd Resolved intrigeri

100


Related issues

Related to Tails - Feature #6146: Factor out waiting for a condition Resolved
Related to Tails - Bug #8259: memlockd-related kludges need to be adapted to systemd Resolved 2014-11-13
Related to Tails - Feature #6171: Tails based on Jessie Resolved 2013-07-19
Related to Tails - Feature #7100: Decide what to do with machine-id Confirmed 2014-04-16
Blocked by Tails - Feature #6015: Tails based on Wheezy Resolved 2013-07-28
Blocks Tails - Feature #5750: Supervise critical services Resolved
Blocks Tails - Feature #7545: Convert manually ordered system initialization bits to native systemd unit files Confirmed 2014-11-27

History

#1 Updated by intrigeri 2013-10-03 11:16:25

  • Subject changed from event-based init to Modern init system
  • Starter set to No

#2 Updated by intrigeri 2013-10-04 06:08:47

  • Subject changed from Modern init system to systemd

#3 Updated by sajolida 2013-12-29 03:41:15

  • Subject changed from systemd to Switch to systemd

#4 Updated by intrigeri 2014-03-20 02:44:53

  • Description updated

#5 Updated by intrigeri 2014-07-10 14:38:30

The goal for 2.0 is to switch to systemd as an init system, not necessarily to convert all our custom stuff to native systemd unit files right away.

#6 Updated by intrigeri 2014-07-10 15:25:45

  • blocks Feature #7545: Convert manually ordered system initialization bits to native systemd unit files added

#7 Updated by intrigeri 2014-07-10 15:26:39

  • Subject changed from Switch to systemd to Switch to systemd as pid 1
  • Description updated

#8 Updated by intrigeri 2014-11-13 21:14:53

  • related to Bug #8259: memlockd-related kludges need to be adapted to systemd added

#9 Updated by intrigeri 2014-11-20 19:54:37

I don’t think we’re going to do that for Tails/Wheezy, and I’ve started working on this in feature/jessie (which already is running systemd as pid 1 anyway).

If someone wants to do that for Tails/Wheezy, some commits from live-config 4.x must probably be backported to 3.x:

  • see Debian bug 726536
  • last time I checked (many months ago), the potentially interesting commits were:
    • 51b0611: OK
    • 35ae448: ??? (dh-systemd)
    • 5396b72: useless, duplicated commit
    • 876e45a: useless (pkg description change)
    • 7a485c1: useless, duplicated commit
    • a1257eb: useless, duplicated commit
    • a5ae8d2: useless, duplicated commit
    • 020324a: useless, duplicated commit

#10 Updated by intrigeri 2014-11-20 22:55:34

#11 Updated by BitingBird 2015-01-03 05:06:43

  • related to Feature #7100: Decide what to do with machine-id added

#12 Updated by intrigeri 2015-07-08 05:32:11

  • Status changed from Confirmed to Resolved
  • Target version changed from Sustainability_M1 to Tails_2.0
  • Feature Branch set to feature/jessie