[gnome-continuous-yocto/gnomeostree-3.28-rocko: 7655/8267] initramfs-framework: Allow directories with spaces
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-continuous-yocto/gnomeostree-3.28-rocko: 7655/8267] initramfs-framework: Allow directories with spaces
- Date: Sun, 17 Dec 2017 06:33:11 +0000 (UTC)
commit 362a99fd5920b3111f04ab8717febd11b2571407
Author: Otavio Salvador <otavio ossystems com br>
Date: Mon Sep 11 14:37:16 2017 -0300
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>
.../initrdscripts/initramfs-framework/mdev | 4 ++--
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 a5df1d7..9814d97 100644
--- a/meta/recipes-core/initrdscripts/initramfs-framework/mdev
+++ b/meta/recipes-core/initrdscripts/initramfs-framework/mdev
@@ -1,5 +1,5 @@
#!/bin/sh
-# Copyright (C) 2011 O.S. Systems Software LTDA.
+# Copyright (C) 2011, 2017 O.S. Systems Software LTDA.
# Licensed on MIT
mdev_enabled() {
@@ -25,6 +25,6 @@ mdev_run() {
# load modules for devices
find /sys -name modalias | while read m; do
- load_kernel_module $(cat $m)
+ load_kernel_module $(cat "$m")
done
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]