diff options
author | Ross Burton <ross.burton@intel.com> | 2013-06-11 18:00:03 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-06-11 18:07:14 +0100 |
commit | 25ac4cf2fa1252b764db41e43f012eee48d8add9 (patch) | |
tree | 3d4225e49932a0d6e5b5ef3687bfbc5f68c5f8e8 | |
parent | 126844d0e11e77110c715b917e34bf22437be8fc (diff) | |
download | poky-25ac4cf2fa1252b764db41e43f012eee48d8add9.tar.gz |
systemd: don't install quotaon.service twice
If the same file is installed twice there's a race which can lead to "make
install" failing. Remove the redundant installation of quotaon.service to
eliminate the race.
(From OE-Core rev: c6c5c2285e1b6cb3598ccba08aee3dfd090e7129)
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-core/systemd/systemd/install-quotaon-once.patch | 32 | ||||
-rw-r--r-- | meta/recipes-core/systemd/systemd_204.bb | 1 |
2 files changed, 33 insertions, 0 deletions
diff --git a/meta/recipes-core/systemd/systemd/install-quotaon-once.patch b/meta/recipes-core/systemd/systemd/install-quotaon-once.patch new file mode 100644 index 0000000000..10280dae43 --- /dev/null +++ b/meta/recipes-core/systemd/systemd/install-quotaon-once.patch | |||
@@ -0,0 +1,32 @@ | |||
1 | Upstream-Status: Submitted (https://bugs.freedesktop.org/show_bug.cgi?id=65659) | ||
2 | Signed-off-by: Ross Burton <ross.burton@intel.com> | ||
3 | |||
4 | From 44b7c4dc877984b5ea3f2c9fa09a93ee16dbe3b2 Mon Sep 17 00:00:00 2001 | ||
5 | From: Ross Burton <ross.burton@intel.com> | ||
6 | Date: Tue, 11 Jun 2013 17:16:37 +0100 | ||
7 | Subject: [PATCH] build-sys: don't install quotaon.service twice | ||
8 | |||
9 | quotaon.service is already installed through dist_systemunit_DATA, so it doesn't | ||
10 | need to be added to nodist_systemunit_DATA. Installing the same file twice | ||
11 | results in a race condition where the install process can fail. | ||
12 | --- | ||
13 | Makefile.am | 3 --- | ||
14 | 1 file changed, 3 deletions(-) | ||
15 | |||
16 | diff --git a/Makefile.am b/Makefile.am | ||
17 | index 28ae7ed..197119e 100644 | ||
18 | --- a/Makefile.am | ||
19 | +++ b/Makefile.am | ||
20 | @@ -3229,9 +3229,6 @@ endif | ||
21 | EXTRA_DIST += \ | ||
22 | units/systemd-quotacheck.service.in | ||
23 | |||
24 | -nodist_systemunit_DATA += \ | ||
25 | - units/quotaon.service | ||
26 | - | ||
27 | # ------------------------------------------------------------------------------ | ||
28 | if ENABLE_RANDOMSEED | ||
29 | rootlibexec_PROGRAMS += \ | ||
30 | -- | ||
31 | 1.7.10.4 | ||
32 | |||
diff --git a/meta/recipes-core/systemd/systemd_204.bb b/meta/recipes-core/systemd/systemd_204.bb index 5a63c7c14a..b8b1290940 100644 --- a/meta/recipes-core/systemd/systemd_204.bb +++ b/meta/recipes-core/systemd/systemd_204.bb | |||
@@ -22,6 +22,7 @@ SRC_URI = "http://www.freedesktop.org/software/systemd/systemd-${PV}.tar.xz \ | |||
22 | file://modprobe.rules \ | 22 | file://modprobe.rules \ |
23 | ${UCLIBCPATCHES} \ | 23 | ${UCLIBCPATCHES} \ |
24 | file://0001-utmp-turn-systemd-update-utmp-shutdown.service-into-.patch \ | 24 | file://0001-utmp-turn-systemd-update-utmp-shutdown.service-into-.patch \ |
25 | file://install-quotaon-once.patch \ | ||
25 | file://00-create-volatile.conf \ | 26 | file://00-create-volatile.conf \ |
26 | file://init \ | 27 | file://init \ |
27 | " | 28 | " |