[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#827665: systemd goes into timeout while waiting for local-fs.target



Package: live-config-systemd
Version: 5.20160608
Tags: patch

Hello,

The After=local-fs.target rule introduced in commit 63ab809 made systemd
go in timeout while waiting for the local-fs target to be reached.

This is due to the fact that the Before= rule in the live-config unit
prevents the startup of udev.

I'm not raising severity on this one because I suspect this only happens
on installed environments, where live-config-systemd is largely useless.
But still, it shouldn't break the boot process in this way.

I'm attaching a small patch that resolves the problem for me, also
available as a git commit at [1].

I unfortunately haven't had the time to test it in a live environment.


Regards,
Eugenio

[1]
https://github.com/semplice/live-config/commit/672fb6274a74a40880c9fc737accd8d5a3d557f5
-- 
Eugenio Paolantonio - Semplice Linux lead developer

Website: me.medesimo.eu
Twitter: @eugenio_g7

«The UNIX philosophy basically involves giving you enough rope to
hang yourself.  And then a couple of feet more, just to be sure.»
From 672fb6274a74a40880c9fc737accd8d5a3d557f5 Mon Sep 17 00:00:00 2001
From: "Eugenio Paolantonio (g7)" <me@medesimo.eu>
Date: Wed, 15 Jun 2016 08:51:56 +0200
Subject: [PATCH] [backend] systemd: do not try to launch live-config before
 udev

The After= rule introduced in 63ab809 made things go in timeout
as udev won't be started before the local-fs target.

Signed-off-by: Eugenio Paolantonio (g7) <me@medesimo.eu>
---
 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 ed7069b..2b82f45 100644
--- a/backend/systemd/live-config.systemd
+++ b/backend/systemd/live-config.systemd
@@ -9,7 +9,7 @@
 [Unit]
 Description=live-config contains the components that configure a live system during the boot process (late userspace).
 Documentation=man:live-config
-Before=basic.target udev.service
+Before=basic.target
 After=local-fs.target
 DefaultDependencies=no
 ConditionPathExists=/bin/live-config

Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: