1 |
ssuominen 14/10/30 05:39:20 |
2 |
|
3 |
Added: |
4 |
kmod-18-static-nodes-indicate-that-creation-of-static-nodes-.patch |
5 |
Log: |
6 |
Include upstream patch for udev-217 compability and adjust blockers accordingly. |
7 |
|
8 |
(Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key 4868F14D) |
9 |
|
10 |
Revision Changes Path |
11 |
1.1 sys-apps/kmod/files/kmod-18-static-nodes-indicate-that-creation-of-static-nodes-.patch |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/kmod/files/kmod-18-static-nodes-indicate-that-creation-of-static-nodes-.patch?rev=1.1&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/kmod/files/kmod-18-static-nodes-indicate-that-creation-of-static-nodes-.patch?rev=1.1&content-type=text/plain |
15 |
|
16 |
Index: kmod-18-static-nodes-indicate-that-creation-of-static-nodes-.patch |
17 |
=================================================================== |
18 |
From 27eceb2e4ecbf2e31940b67cee682a6935f61e6c Mon Sep 17 00:00:00 2001 |
19 |
From: Tom Gundersen <teg@××××.no> |
20 |
Date: Mon, 27 Oct 2014 17:55:03 +0100 |
21 |
Subject: [PATCH] static-nodes: indicate that creation of static nodes should |
22 |
only happen at boot |
23 |
|
24 |
udev will only manage static nodes that exist at the time udev is started, so |
25 |
creating static nodes later on will likely not behave as expected. In |
26 |
particular, recreating the static nodes at run-time will reset any permissions |
27 |
udev may have applied to the nodes at boot. |
28 |
|
29 |
See <https://bugzilla.redhat.com/show_bug.cgi?id=1147248> and the discussion |
30 |
following <http://permalink.gmane.org/gmane.comp.sysutils.systemd.devel/23795>. |
31 |
|
32 |
Note that this requires (the yet to be released) systemd v217 or a backport |
33 |
of systemd patch 8c94052ee543c3598a3c7b0c46688150aa2c6168. |
34 |
--- |
35 |
tools/static-nodes.c | 2 +- |
36 |
1 file changed, 1 insertion(+), 1 deletion(-) |
37 |
|
38 |
diff --git a/tools/static-nodes.c b/tools/static-nodes.c |
39 |
index d1e3b6e..8d2356d 100644 |
40 |
--- a/tools/static-nodes.c |
41 |
+++ b/tools/static-nodes.c |
42 |
@@ -96,7 +96,7 @@ static int write_tmpfiles(FILE *out, char modname[], char devname[], char type, |
43 |
return EXIT_FAILURE; |
44 |
} |
45 |
|
46 |
- ret = fprintf(out, "%c /dev/%s 0600 - - - %u:%u\n", |
47 |
+ ret = fprintf(out, "%c! /dev/%s 0600 - - - %u:%u\n", |
48 |
type, devname, maj, min); |
49 |
if (ret < 0) |
50 |
return EXIT_FAILURE; |
51 |
-- |
52 |
2.1.2 |