summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/systemd/systemd/binfmt-install.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-core/systemd/systemd/binfmt-install.patch')
-rw-r--r--meta/recipes-core/systemd/systemd/binfmt-install.patch35
1 files changed, 18 insertions, 17 deletions
diff --git a/meta/recipes-core/systemd/systemd/binfmt-install.patch b/meta/recipes-core/systemd/systemd/binfmt-install.patch
index c2d5099f24..93b8e3cf3a 100644
--- a/meta/recipes-core/systemd/systemd/binfmt-install.patch
+++ b/meta/recipes-core/systemd/systemd/binfmt-install.patch
@@ -9,11 +9,11 @@ however can do that in a postinst.
9Upstream-Status: Denied 9Upstream-Status: Denied
10Signed-off-by: Ross Burton <ross.burton@intel.com> 10Signed-off-by: Ross Burton <ross.burton@intel.com>
11 11
12diff --git a/Makefile.am b/Makefile.am 12Index: git/Makefile.am
13index 7933de6..78acb6f 100644 13===================================================================
14--- a/Makefile.am 14--- git.orig/Makefile.am
15+++ b/Makefile.am 15+++ git/Makefile.am
16@@ -3133,10 +3133,6 @@ INSTALL_DIRS += \ 16@@ -4495,10 +4495,6 @@
17 $(prefix)/lib/binfmt.d \ 17 $(prefix)/lib/binfmt.d \
18 $(sysconfdir)/binfmt.d 18 $(sysconfdir)/binfmt.d
19 19
@@ -24,30 +24,31 @@ index 7933de6..78acb6f 100644
24 endif 24 endif
25 25
26 EXTRA_DIST += \ 26 EXTRA_DIST += \
27diff --git a/units/proc-sys-fs-binfmt_misc.automount b/units/proc-sys-fs-binfmt_misc.automount 27Index: git/units/proc-sys-fs-binfmt_misc.automount
28index 6be3893..709adef 100644 28===================================================================
29--- a/units/proc-sys-fs-binfmt_misc.automount 29--- git.orig/units/proc-sys-fs-binfmt_misc.automount
30+++ b/units/proc-sys-fs-binfmt_misc.automount 30+++ git/units/proc-sys-fs-binfmt_misc.automount
31@@ -16,3 +16,6 @@ ConditionPathIsReadWrite=/proc/sys/ 31@@ -16,3 +16,6 @@
32 32
33 [Automount] 33 [Automount]
34 Where=/proc/sys/fs/binfmt_misc 34 Where=/proc/sys/fs/binfmt_misc
35+ 35+
36+[Install] 36+[Install]
37+WantedBy=sysinit.target 37+WantedBy=sysinit.target
38diff --git a/units/systemd-binfmt.service.in b/units/systemd-binfmt.service.in 38Index: git/units/systemd-binfmt.service.in
39index 02dfe77..86d3481 100644 39===================================================================
40--- a/units/systemd-binfmt.service.in 40--- git.orig/units/systemd-binfmt.service.in
41+++ b/units/systemd-binfmt.service.in 41+++ git/units/systemd-binfmt.service.in
42@@ -11,6 +11,7 @@ Documentation=man:systemd-binfmt.service(8) man:binfmt.d(5) 42@@ -11,6 +11,8 @@
43 Documentation=https://www.kernel.org/doc/Documentation/binfmt_misc.txt 43 Documentation=https://www.kernel.org/doc/Documentation/binfmt_misc.txt
44 DefaultDependencies=no 44 DefaultDependencies=no
45 Conflicts=shutdown.target 45 Conflicts=shutdown.target
46+Wants=proc-sys-fs-binfmt_misc.automount 46+Wants=proc-sys-fs-binfmt_misc.automount
47 After=systemd-readahead-collect.service systemd-readahead-replay.service proc-sys-fs-binfmt_misc.automount 47+
48 After=proc-sys-fs-binfmt_misc.automount
48 Before=sysinit.target shutdown.target 49 Before=sysinit.target shutdown.target
49 ConditionPathIsReadWrite=/proc/sys/ 50 ConditionPathIsReadWrite=/proc/sys/
50@@ -24,3 +25,6 @@ ConditionDirectoryNotEmpty=|/run/binfmt.d 51@@ -24,3 +26,6 @@
51 Type=oneshot 52 Type=oneshot
52 RemainAfterExit=yes 53 RemainAfterExit=yes
53 ExecStart=@rootlibexecdir@/systemd-binfmt 54 ExecStart=@rootlibexecdir@/systemd-binfmt