Package: live-config
Version: 5.20170112+deb9u1
Severity: important

I frequently see Debian Live based systems not starting up correctly
with the following error messages in the journal:
live-config[863]: /bin/live-config: 154: /bin/live-config: cannot open
/tmp/live-config.pipe: No such file
live-config[863]: /bin/live-config: 155: /bin/live-config: cannot create
/tmp/live-config.pipe: Interrupted system call

Looking at the code and error message it is clearly a race condition
between live-config and systemd-tmpfiles-setup.
This bug can be fixed by adding "systemd-tmpfiles-setup.service" to the
"After=" configuration in live-config.service.

The attached patch (against the current version in git) fixes this issue.

-- System Information:
Debian Release: 9.3
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.13.0-0.bpo.1-amd64 (SMP w/1 CPU core)
Locale: LANG=de_CH.UTF-8, LC_CTYPE=de_CH.UTF-8 (charmap=UTF-8),
LANGUAGE=de_CH.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages live-config depends on:
ii  live-config-systemd [live-config-backend]  5.20170112+deb9u1

Versions of packages live-config recommends:
ii  iproute2                4.9.0-1+deb9u1
ii  keyboard-configuration  1.164
ii  live-config-doc         5.20170112+deb9u1
ii  live-tools              1:20151214+nmu1
ii  locales                 2.24-11+deb9u1
ii  sudo                    1.8.19p1-2.1
ii  user-setup              1.67

Versions of packages live-config suggests:
ii  pciutils  1:3.5.2-1
ii  wget      1.18-5+deb9u1

-- no debconf information

>From 331b52bd0c2e112327c8effc50d7f7f804afdb71 Mon Sep 17 00:00:00 2001
From: Ronny Standtke <ronny.stand...@gmx.net>
Date: Mon, 1 Jan 2018 14:38:51 +0100
Subject: [PATCH] fixed a race condition between live-config and
 systemd-tmpfiles-setup

---
 backend/systemd/live-config.systemd | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/backend/systemd/live-config.systemd b/backend/systemd/live-config.systemd
index 2b82f45..1092f94 100644
--- a/backend/systemd/live-config.systemd
+++ b/backend/systemd/live-config.systemd
@@ -10,7 +10,7 @@
 Description=live-config contains the components that configure a live system during the boot process (late userspace).
 Documentation=man:live-config
 Before=basic.target
-After=local-fs.target
+After=local-fs.target systemd-tmpfiles-setup.service
 DefaultDependencies=no
 ConditionPathExists=/bin/live-config
 ConditionKernelCommandLine=boot=live
-- 
2.11.0

Reply via email to