summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2017-09-11 14:37:16 -0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-09-12 23:55:28 +0100
commit362a99fd5920b3111f04ab8717febd11b2571407 (patch)
treeac6148ab6de48f3dd36252d34ae07150472b1c90 /meta/recipes-core
parent06669f0f9e0f954ce08a958abde0639a4fa006aa (diff)
downloadpoky-362a99fd5920b3111f04ab8717febd11b2571407.tar.gz
initramfs-framework: Allow directories with spaces
When mdev module loads the Linux kernel modules, it can visit directories with spaces. To allow that, we must quote the variable otherwise it misunderstand it arguments as multiple entries. Fixes: ,---- | Freeing unused kernel memory: 3072K (80d00000 - 81000000) | cat: can't open '/sys/devices/platform/Vivante': No such file or directory | cat: can't open 'GCCore/modalias': No such file or directory `---- (From OE-Core rev: afc73dd6346325de0a39997a3045b6659f9658b5) Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core')
-rw-r--r--meta/recipes-core/initrdscripts/initramfs-framework/mdev4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/recipes-core/initrdscripts/initramfs-framework/mdev b/meta/recipes-core/initrdscripts/initramfs-framework/mdev
index a5df1d717a..9814d9764a 100644
--- a/meta/recipes-core/initrdscripts/initramfs-framework/mdev
+++ b/meta/recipes-core/initrdscripts/initramfs-framework/mdev
@@ -1,5 +1,5 @@
1#!/bin/sh 1#!/bin/sh
2# Copyright (C) 2011 O.S. Systems Software LTDA. 2# Copyright (C) 2011, 2017 O.S. Systems Software LTDA.
3# Licensed on MIT 3# Licensed on MIT
4 4
5mdev_enabled() { 5mdev_enabled() {
@@ -25,6 +25,6 @@ mdev_run() {
25 25
26 # load modules for devices 26 # load modules for devices
27 find /sys -name modalias | while read m; do 27 find /sys -name modalias | while read m; do
28 load_kernel_module $(cat $m) 28 load_kernel_module $(cat "$m")
29 done 29 done
30} 30}