Commit 5d42ac86 authored by Anton Midyukov's avatar Anton Midyukov

tar2fs: copying dtb in chroots

For the rpi-def and rpi-un kernels, the symlink points to the absolute path /lib/devicetree/... As a result, instead of the rootfs directory, they pointed to the host directory.
parent 3072527c
......@@ -383,7 +383,7 @@ fi
# Copy default devicetree to ESP
if [ -L "$ROOTFS"/boot/dtb ] && [ -n "$EFIPART" ]; then
cp -Lr "$ROOTFS"/boot/dtb "$EFIPARTFS"
chroot "$ROOTFS" cp -Lr /boot/dtb /boot/efi/
fi
# e2k
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment