mirror of
https://git.yoctoproject.org/poky
synced 2026-04-29 09:32:11 +02:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
06669f0f9e
commit
362a99fd59
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user