diff options
Diffstat (limited to 'meta/recipes-core/systemd')
-rw-r--r-- | meta/recipes-core/systemd/systemd/0020-rules-watch-metadata-changes-in-ide-devices.patch | 43 | ||||
-rw-r--r-- | meta/recipes-core/systemd/systemd_234.bb | 1 |
2 files changed, 44 insertions, 0 deletions
diff --git a/meta/recipes-core/systemd/systemd/0020-rules-watch-metadata-changes-in-ide-devices.patch b/meta/recipes-core/systemd/systemd/0020-rules-watch-metadata-changes-in-ide-devices.patch new file mode 100644 index 0000000000..17d698a06c --- /dev/null +++ b/meta/recipes-core/systemd/systemd/0020-rules-watch-metadata-changes-in-ide-devices.patch | |||
@@ -0,0 +1,43 @@ | |||
1 | From 8207d645582e96c56950674e104653d0cd552d60 Mon Sep 17 00:00:00 2001 | ||
2 | From: Hongxu Jia <hongxu.jia@windriver.com> | ||
3 | Date: Fri, 17 Nov 2017 09:46:00 +0800 | ||
4 | Subject: [PATCH] rules: watch metadata changes in ide devices | ||
5 | |||
6 | Formatting IDE storage does not trigger "change" uevents. As a result | ||
7 | clients using udev API don't get any updates afterwards and get outdated | ||
8 | information about the device. | ||
9 | ... | ||
10 | root@qemux86-64:~# mkfs.ext4 -F /dev/hda1 | ||
11 | Creating filesystem with 262144 4k blocks and 65536 inodes | ||
12 | Filesystem UUID: 98791eb2-2bf3-47ad-b4d8-4cf7e914eee2 | ||
13 | |||
14 | root@qemux86-64:~# ls /dev/disk/by-uuid/98791eb2-2bf3-47ad-b4d8-4cf7e914eee2 | ||
15 | ls: cannot access '/dev/disk/by-uuid/98791eb2-2bf3-47ad-b4d8-4cf7e914eee2': No such file or directory | ||
16 | ... | ||
17 | Include hd* in a match for watch option assignment. | ||
18 | |||
19 | Upstream-Status: Denied | ||
20 | |||
21 | qemu by default emulates IDE and the linux-yocto kernel(s) use | ||
22 | CONFIG_IDE instead of the more modern libsata, so disks appear as | ||
23 | /dev/hd*. A similar patch rejected by upstream because CONFIG_IDE | ||
24 | is deprecated. | ||
25 | |||
26 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> | ||
27 | --- | ||
28 | rules/60-block.rules | 2 +- | ||
29 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
30 | |||
31 | diff --git a/rules/60-block.rules b/rules/60-block.rules | ||
32 | index 343fc06..b5237da 100644 | ||
33 | --- a/rules/60-block.rules | ||
34 | +++ b/rules/60-block.rules | ||
35 | @@ -8,4 +8,4 @@ ACTION=="add", SUBSYSTEM=="module", KERNEL=="block", ATTR{parameters/events_dfl_ | ||
36 | ACTION=="change", SUBSYSTEM=="scsi", ENV{DEVTYPE}=="scsi_device", TEST=="block", ATTR{block/*/uevent}="change" | ||
37 | |||
38 | # watch metadata changes, caused by tools closing the device node which was opened for writing | ||
39 | -ACTION!="remove", SUBSYSTEM=="block", KERNEL=="loop*|nvme*|sd*|vd*|xvd*|pmem*|mmcblk*", OPTIONS+="watch" | ||
40 | +ACTION!="remove", SUBSYSTEM=="block", KERNEL=="loop*|nvme*|sd*|vd*|xvd*|pmem*|mmcblk*|hd*", OPTIONS+="watch" | ||
41 | -- | ||
42 | 1.8.3.1 | ||
43 | |||
diff --git a/meta/recipes-core/systemd/systemd_234.bb b/meta/recipes-core/systemd/systemd_234.bb index bfcecb3d4e..765daf2084 100644 --- a/meta/recipes-core/systemd/systemd_234.bb +++ b/meta/recipes-core/systemd/systemd_234.bb | |||
@@ -27,6 +27,7 @@ SRC_URI = "git://github.com/systemd/systemd.git;protocol=git \ | |||
27 | file://0017-remove-duplicate-include-uchar.h.patch \ | 27 | file://0017-remove-duplicate-include-uchar.h.patch \ |
28 | file://0018-check-for-uchar.h-in-configure.patch \ | 28 | file://0018-check-for-uchar.h-in-configure.patch \ |
29 | file://0019-socket-util-don-t-fail-if-libc-doesn-t-support-IDN.patch \ | 29 | file://0019-socket-util-don-t-fail-if-libc-doesn-t-support-IDN.patch \ |
30 | file://0020-rules-watch-metadata-changes-in-ide-devices.patch \ | ||
30 | file://0001-add-fallback-parse_printf_format-implementation.patch \ | 31 | file://0001-add-fallback-parse_printf_format-implementation.patch \ |
31 | file://0002-src-basic-missing.h-check-for-missing-strndupa.patch \ | 32 | file://0002-src-basic-missing.h-check-for-missing-strndupa.patch \ |
32 | file://0003-don-t-fail-if-GLOB_BRACE-and-GLOB_ALTDIRFUNC-is-not-.patch \ | 33 | file://0003-don-t-fail-if-GLOB_BRACE-and-GLOB_ALTDIRFUNC-is-not-.patch \ |