render / rpms / libvirt

Forked from rpms/libvirt 9 months ago
Clone
7a3408
From 7020e2cb9168abfef903e7c9447430a2abe02981 Mon Sep 17 00:00:00 2001
7a3408
Message-Id: <7020e2cb9168abfef903e7c9447430a2abe02981@dist-git>
7a3408
From: Martin Kletzander <mkletzan@redhat.com>
7a3408
Date: Wed, 26 Aug 2015 16:32:52 +0200
7a3408
Subject: [PATCH] Start daemon only after filesystems are mounted
7a3408
7a3408
https://bugzilla.redhat.com/show_bug.cgi?id=1255228
7a3408
7a3408
When images are on mounted filesystems, there is no guarantee libvirtd
7a3408
will start before they are mounted.  Since we want to start after both
7a3408
local and remote filesystems are mounted, we need to add both local-fs
7a3408
and remote-fs as targets that should precede starting libvirtd service.
7a3408
7a3408
Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
7a3408
(cherry picked from commit 3418e7815a9fc9245aa6476415a353790ed3cb8b)
7a3408
Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
7a3408
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
7a3408
---
7a3408
 daemon/libvirtd.service.in | 2 ++
7a3408
 1 file changed, 2 insertions(+)
7a3408
7a3408
diff --git a/daemon/libvirtd.service.in b/daemon/libvirtd.service.in
7a3408
index 1759ac8..9e67e43 100644
7a3408
--- a/daemon/libvirtd.service.in
7a3408
+++ b/daemon/libvirtd.service.in
7a3408
@@ -5,6 +5,8 @@ After=network.target
7a3408
 After=dbus.service
7a3408
 After=iscsid.service
7a3408
 After=apparmor.service
7a3408
+After=local-fs.target
7a3408
+After=remote-fs.target
7a3408
 Documentation=man:libvirtd(8)
7a3408
 Documentation=http://libvirt.org
7a3408
 
7a3408
-- 
7a3408
2.5.1
7a3408