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
2024-04-24 19:38:39 -07:00
committed by Jonathan Ringer
parent a5d25fe8bf
commit ce80359d9f
@@ -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