Commit 1279d8b7 authored by Anton Midyukov's avatar Anton Midyukov

tar2fs: copy default devicetree to ESP

Needed for booting in UEFI mode on single-board computers with U-boot.
parent cacb3948
......@@ -381,6 +381,11 @@ if [ -f "$ROOTFS/boot/extlinux/extlinux.conf" ]; then
fi
fi
# Copy default devicetree to ESP
if [ -L "$ROOTFS"/boot/dtb ] && [ -n "$EFIPART" ]; then
cp -Lr "$ROOTFS"/boot/dtb "$EFIPARTFS"
fi
# e2k
if [ -f "$ROOTFS/boot/boot.conf" ]; then
sed -i "s/LABEL=ROOT/$ROOTDEV/g" "$ROOTFS/boot/boot.conf"
......
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