deviceTree: ensure file symlinks are included in applyOverlays output

When using a custom `hardware.deviceTree.dtbSource`, we cannot assume
that all DTBs in this directory are regular files. This change allows
for file symlinks to be present as well, which fixes the issue where
only file (a symlink) is present in `dtbSource` and the copy fails with
`cp: missing file operand`.
This commit is contained in:
Jared Baur 2023-11-03 15:38:12 -07:00 committed by Jonathan Ringer
parent a5d25fe8bf
commit ce80359d9f
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ with lib; {
in ''
mkdir -p $out
cd "${base}"
find . -type f -name '*.dtb' -print0 \
find -L . -type f -name '*.dtb' -print0 \
| xargs -0 cp -v --no-preserve=mode --target-directory "$out" --parents
for dtb in $(find "$out" -type f -name '*.dtb'); do