mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 08:53:21 +00:00
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:
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
|
||||
|
Loading…
Reference in New Issue
Block a user