Hi all,

on https://bugzilla.novell.com/show_bug.cgi?id=809820 we noted loopback
mountpoint could failed if systemd was trying to mount them before
systemd-udevd was started, since some static devices node wouldn't be
created in time.

This patches ensures local-fs-pre.target is started after systemd-udevd
is started.
-- 
Frederic Crozat <fcro...@suse.com>
SUSE
>From 94dc949a3056eb989ff2e0c90d951b55eabf72f6 Mon Sep 17 00:00:00 2001
From: Frederic Crozat <fcro...@suse.com>
Date: Thu, 21 Mar 2013 17:28:13 +0100
Subject: [PATCH] udevd: ensure static nodes are created before local-fs mount

static nodes (like /dev/loop-control) are created when systemd-udevd
is started and needed to mount loopback devices. Therefore,
local-fs-pre.target should be only started after systemd-udevd is
started.
---
 units/systemd-udevd.service.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/units/systemd-udevd.service.in b/units/systemd-udevd.service.in
index 86c650c..97fb2f3 100644
--- a/units/systemd-udevd.service.in
+++ b/units/systemd-udevd.service.in
@@ -10,7 +10,7 @@ Description=udev Kernel Device Manager
 Documentation=man:systemd-udevd.service(8) man:udev(7)
 Wants=systemd-udevd-control.socket systemd-udevd-kernel.socket
 After=systemd-udevd-control.socket systemd-udevd-kernel.socket
-Before=sysinit.target
+Before=sysinit.target local-fs-pre.target
 DefaultDependencies=no
 ConditionCapability=CAP_MKNOD
 
-- 
1.8.1.4

_______________________________________________
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to